Content Items not displaying in Service Portal

Marques2
Tera Expert

Hello All,

My team and I are configuring the Service Portal right now and it hasn't been a very pleasant experience. One issue is that the Content Items within the Catalogs do not display in the Service Portal. Does anyone know a work around so the content items can be utilized?

Appreciate any help!

-Marques

16 REPLIES 16

majorluck4
ServiceNow Employee
ServiceNow Employee

Possible workaround:


1. Simple Workaround: Create a regular catalog item with the link in the description. You will need to find a way to hide the submit.



2. Advanced Workaround: Create a regular catalog item. Create a custom widget based off of "SC Catalog Item".



Server Script:


Get sysId passed


var catitem_sys_id = $sp.getParameter("sys_id") || $sp.getParameter('sl_sys_id');


if catitem_sys_id = sysID of catalog item pass true else pass false in a variable like data.redirect



Client controller:


Check $scope.data.redirect. If it is true then do a window.location to url they want.



HTML: leave empty



Last add the widget to sc_cat_item page.


As a note the "advanced workaround" won't work with a "record watcher", as $sp parameters are blank in the "model" server script when the "record watcher" runs.
I believe this may actually be a bug with the Record watcher.   And I don't have access to HI.


Brad Tilton
ServiceNow Employee
ServiceNow Employee

If you look at the SC Category Page widget on line 22 of the server code it's filtering out wizards and content items. You could copy the widget and modify that and go from there.


Hi Brad,



Is there a reason Wizards have been excluded from use in Service Portal?   i.e., if we customized the widget to not exclude items of type 'sc_cat_item_wizard', would they be unusable for some reason in Service Portal?




Thanks,


-Brian


Brad Tilton
ServiceNow Employee
ServiceNow Employee

FYI, It looks like this is fixed in Helsinki Patch 3.



Helsinki Patch 3