Substitute com.glideapp.servicecatalog_category_view with com.glideapp.my_custom_view

Greg42
Mega Guru

Hi All,

I am trying to change the way items/categories are displayed it a catalogue - namely, to display it as a grid not a list. I don't want to change existing code from obvious reasons. I did some research and looked around the system of how those thing work together but can't see where the link item - using SNC.CatalogURLGenerator - generates com.glideapp.servicecatalog_category_view - can't see source code for it anywhere. I would like to change it to my custom view allowing me to work on it without worrying about future updates.

Is there a way to change the path generated by CatalogURLGenerator to point somewhere else than default com.glideapp.servicecatalog_category_view?

Any help will be much appreciated.

Cheers

Greg

1 ACCEPTED SOLUTION

Greg42
Mega Guru

I have managed to style the view as I wanted. Used addLoadEvent and checked for com.glideapp.servicecatalog_category_view.do then used jQuery for styling.


View solution in original post

39 REPLIES 39

Jaikumar,



Try to clear your browser cache after the update. You can also clear SN cache but browser cache should be enough.




Cheers



Greg


Hello Greg,



Tested again by clearing browser cache and SN cache also. Still no luck.


Do I need to verify any system property?



Thanks,


Jaikumar


Jaikumar,



I think I know where the problem lies. Add items = false; under line 114.




Cheers



Greg


Hello Greg,



I have also added category=false; under 163. Now I'm getting required output.



Thanks,


Jaikumar Haryani


Hi Jaikumar,



Good to hear that it works in the end. Yes, the problem is that when the code was written it was assumed that category section is at the top and items at the bottom so those flags weren't cleared. Main reason why items were placed in wrong elements when you had categories other way around.




Cheers



Greg