Cireson Portal: Hiding Search Types from the Page Search

I had a rather interesting question the other day about hiding unwanted types of search form the Cireson Portals page search feature located at the top of the Cireson Portal.

Search Locations 1

The user was trying to remove the option for Knowledge Management as they are not currently using it within their environment.

At first the solution seems easy and that is to find the element in CSS and set it to hidden for that Index.

However, as it turns out, the list items are generate at build time and depending on if you are an analyst or an end user the index value of the list item will change. Hiding Knowledge Management for Analysts hides Service Catalog for End Users or hiding Knowledge Management for End Users hides Work Items for analysts.

So how do we fix this with CSS?

Answer? We don’t…..      We use Java Script instead.

By copying the following code in to the Custom.js file located int he Custom Space of the Cireson portal (Default location: C:\inetpub\CiresonPortal\CustomSpace)

/* Hide knowledge articles from all users, based on static “Knowledge Base” text. */
$(“.dropdown-menu”).find(“li:contains(Knowledge Base)”).hide();

This code looks for the dropdown menu that contains a list item labeled “Knowledge Base” it will hide the list item.

By changing out the text in bold with the list name you wish to hide (Work Items or Request Offerings) you can hide these menu items too.

The end result, the search item list no longer has Knowledge Base available to search on.

Search Locations 2



  1. Ady Max

    Hi Brett. I’m looking for a way to change the default type of search to Knowledge Base for end user on the home page. How can I achieve this? I want to remove the big search bar and have the top search bar to default to Knowledge Base.


    • Brett Moffett

      Using JScript this should be possible.
      Finding the list value like is shown in the example it would then be a case of setting that as default.

      I don’t know the exact syntax for this but if I get a chance to look at it i’ll post the code here and to

      Thanks for stopping by the blog.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s