How to rearrange the categories on a Catalog?? Please help...

DevSalvo
Tera Contributor

Hi, I know how to change the order on the list at the left but how can I change the order on the Icons in the middle and right? I can't do it through the 'order' value in the categories table. Any ideas? I tried editing the widget but to no avail..

DevSalvo_0-1664815912160.png

 

Thank you for your time and help. 

1 ACCEPTED SOLUTION

eumak
Tera Guru

Hello ,
You can achieve by making some changes in the widget named as "Categories".

var sc = new GlideRecord('sc_category');
sc.addQuery('sys_class_name', 'sc_category');
sc.addActiveQuery();
sc.orderBy('title'); // please edit this line with order in the widget & try it out
data.sc_catalog = $sp.getValue('sc_catalog');
............!


You will find the 
above code in the server side. 

Mark Correct or Helpful if it helps.

Cheers..!
Happy Learning:)
Tushar

 

Mark it as helpful or correct, If Applicable


Cheers..!

Happy Learning:)

Tushar

View solution in original post

5 REPLIES 5

eumak
Tera Guru

Happy to hear , that it helped you.

Cheers..!
Happy Learning:)

Mark it as helpful or correct, If Applicable


Cheers..!

Happy Learning:)

Tushar