how to enter html (url code and next line) in description field

ashwanikumar
Tera Expert

hi All,

How can I add a URL Link on a catalog category in description field? Can description field accept the HTML text? I need to enter three separate lines in catelgory.

find_real_file.png

E.g.

Click on google.com

xyz

abc

Thanks,

Kumar

2 REPLIES 2

Gaurav Bajaj
Kilo Sage

Hi Ashwini,



Please follow below steps to achieve it.



1) Change the field type of description field to translated HTML for category table.



find_real_file.png



This will allow you to have a rich text editor in your description field in the category.



2) Go to UI page com.glideapp.servicecatalog_category_view and find the snippet where it's rendering the category description.



Change the code of below one.



find_real_file.png



You need to comment out the $[HTML:category_description] and add the below-highlighted line.


This will not escape the HTML part from the description and show the line as HTML itself.



Category Page :


find_real_file.png



Rendered in Service Catalog :


find_real_file.png



Disclaimer: Since we are updating the OOB UI page, it will skip the further upgrades. You might have to manually merge it in future.




Thanks


Gaurav


How does this translate to service portal? I assume the sc-category widget would need to be cloned and edited? What would be the HTML changes that would need to be made here?

 

find_real_file.png