How to modify SC Category page to display all catalog item?

Akshaya5
Tera Contributor

When opening the SC category page on portal, by default left side categories is shown by clicking one category, catalog items will display. My requirement is I don't need Categories, it directly need to display all Catalog item. Please kindly advise me to how achieve this.

 

Best Regards,

Akshaya 

1 ACCEPTED SOLUTION

Shruti
Mega Sage
Mega Sage

Hi,

Can you try with attached widget XML. It shows all items under Service Catalog

View solution in original post

4 REPLIES 4

AnirudhKumar
Mega Sage
Mega Sage

Hello Akshaya,

The catalog items that appear on page load are the 'Popular Items'. There is a block of code in the OOB widget (SC Category Page) that includes server side code to get these popular items. The only way to show all catalogs is by cloning this OOB widget and then removing all those lines of code that get the Popular Items.

This will incur a lot of technical debt, and is very messy.

As an alternative, you could have the page display the catalog items that belong to a particular category on load. This just involves modifying the URL of your menu to have an additional parameter called sys_id and set it to a default category sys id

Shruti
Mega Sage
Mega Sage

Hi,

Can you try with attached widget XML. It shows all items under Service Catalog

ann4
Giga Contributor

Thanks for this Shruti, was able to use your widget in one of my pages.

Hi Shruti,

Is there a way we can keep the popular items and show all catalog items under popular items? My requirement here is to show both the popular items and all catalog items only for the HR Catalogs, not for all.