How to add image/icon beside a category in service portal

Raphael Dizon
Mega Expert

Hello,

How can I add images in a category and catalog items in the service portal? Currently categories and catalogs are being displayed as blocks and I have no idea how to insert an image within those blocks. I tried inserting desktop image via 'Maintain categories' and the image is being displayed only in the back end but not in the portal. Any help would do as I am quite new to portal development, thank you.

Categories:

find_real_file.png

Catalog items:

find_real_file.png

 

Regards,

Raphael

3 REPLIES 3

SatheeshKumar
Kilo Sage

For getting that you need to modify the html content of your widget and add the below

HTML:

 <img ng-src="{{::item.picture}}?t=small" ng-if="item.picture" alt="{{::item.name}}" class="m-r-sm m-b-sm item-image pull-left"/>

 

Server :

 

item.picture =< url of the image >

 

For more details  refer sc category page widget script : it hazs a similar functionality.

 

-satheesh

 

 

Hello,

There is one problem, i don't know what widget it belongs to since nothing is displaying whenever i 'ctrl + right' click the specific widget. Does that mean that I lack access and that I cannot edit widgets in that portal? thank you

 

Yes, if it not coming then you dont have enough acess to that. Try using an admin user to make these changes.