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

Hi Greg,


Should above code go as UI Script?


I don't have much knowledge on UI area


Yes Deepak, create a new UI Script and paste in the code. Don't forget to set it to global and it should work straight away.


Thanks a lot again.


Working as expected.


Next question would be too much to ask about.


But any way we can surround those items in box view we see on online shopping   sites?


Probably has to with styling and some div tags set at line 95 and 96 number.


inline styling should do the work right?


No problem.



Yes, you can style it the way you want - inline or if you using external css add your styles there.



Cheers


Thank you.


Will give it a try. )


Have a nice day !!!