Exclude a Catalog Item from appearing in the Popular Items on the Service PortalIssue <!-- div.margin { padding: 10px 40px 40px 30px; } table.tocTable { border: 1px solid; border-color: #e0e0e0; background-color: #fff; } .title { color: #d1232b; font-weight: normal; font-size: 28px; } h1 { color: #d1232b; font-weight: normal; font-size: 21px; margin-bottom: 5px; border-bottom-width: 2px; border-bottom-style: solid; border-bottom-color: #cccccc; } h2 { color: #646464; font-weight: bold; font-size: 18px; } h3 { color: #000000; font-weight: bold; font-size: 16px; } h4 { color: #666666; font-weight: bold; font-size: 15px; } h5 { color: #000000; font-weight: bold; font-size: 13px; } h6 { color: #000000; font-weight: bold; font-size:14px; } ul, ol { margin-left: 0; list-style-position: outside; } --> Description This article describes how to exclude a Catalog Item from appearing in the Popular Items on the Service Portal. Procedure The functionality that retrieves the Popular Items resides within the SC Category Page [sc-category] widget. Within the server script of this widget is the "getPopularItems" function where the query is built. To have the ability to exclude items from the list of items returned from this query a new boolean field would need to be created for the Catalog Item [sc_cat_item] table. You will then need to clone the SC Category Page [sc-category] widget and add the new field to the query. As an example let's say we create a new field named "Exclude from Popular items [u_exclude_from_pop_items]" and this field is set to "false" by default. Any catalog items that you would like to exclude would need this field value changed to "true". After cloning the widget we will need to modify the "count" variable created on line 164* (and redefined for record producers on line 191*) in the server script that holds the query by adding the following:[code]<code>count.addQuery('u_exclude_from_pop_items',false);</code>[/code] Once the cloned widget has been updated switch the OOB version for the custom version. *Line numbers provided refer to Madrid release version of the SC Category Page [sc-category] widget Applicable Versions Any supported release (Madrid, London and Kingston as of this writing)