- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2022 06:11 AM
Hi
I'm trying to limit the sc_catagori widget, forcing it to only show a single Service Catalog category. I've already cloned the OOTB one to a custom one.
All the different community posts I've found show examples with code but appears to be for SN version apx 4-5 years older, hence the OOTB code is now changed, I cannot really figure out where to place my filter in the serverside script to just filter for a single category sys_id?
Is there anybody who can show me the path?
Solved! Go to Solution.
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2022 04:54 AM
I never recommend widget customization but if that's a business requirement, below code will work for you. this is the latest san Diego version.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2022 02:46 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2022 07:31 AM
You dont need to clone widget for this. Mark all the other catalog items as "hide on service portal" true.
After this you will see only one category on potal that will be of catalog item which is visible on portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2022 12:31 AM
Hi Raghav,
That could be one approach, but since i do want numerous catalog items to be shown on the portal, just elsewhere, i do not persay wish to hide them.
My wish case is to be able, via the widget, to control what items are diplayed at different pages - possibly having to customise the ootb widget to obtain it, but are there smarter ways, a different way could be an solution too.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2022 04:54 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2022 02:46 AM
