Service Portal 'SC Categories' hints and 'SC Category Page' title

mcarpenter
Tera Contributor

HI All:

I have a requirement to add mouse over/hover hints to the categories in the SC Categories Widget.   I was thinking that I could use the OOB column 'description' in the Catalog Item.   It would have a similar behavior as the fields in the standard forms that that display the value in the 'hint' column.     like this:

find_real_file.png

In the same vein, I also want to show the Title And Description at the top of the 'SC Category Page' widget, similar to below.   I had some success by modifying the server script but it messed up the breadcrumbs widget.

find_real_file.png

I was hoping someone had either already done these or point me in the right direction.

Thanks

4 REPLIES 4

Thanks Chandu:



I tested the property and it looks like it only works for a non-Service Portal application.   I am using Service Portal.


Nia McCash
Mega Sage
Mega Sage

For your second question, the title of the category should already be there.   To add the description, you would need to clone and modify the 'SC Category Page' widget.



Add the line to show the description below the title in the HTML Template:


<h1 class="h4 m-t-none" aria-label="{{data.category}} ${Category}">{{data.category}}</h1>


<p class="catalog-desc">{{data.description}}</p>



And add a line in the Server Script to set the description so the HTML can display it:


data.category = categoryJS.getTitle();


data.description = categoryJS.getDescription();