- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2018 01:59 AM
How can we add icons to categories as shown below for service portal Istanbul version.Where do we need to customize in SC Categories widget under spCategoryListItem
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2018 09:20 PM
Creating a new widget from scratch may actually be a better approach since the OOB widget has a lot of complex logic, and also relies on an Angular Provider.
That being said, if you're just looking for the quickest way to add images, you can do the following:
The two lines I changed are highlighted. You'll also need to add some styles for the "icon" class. I used:
This will render the categories as follows:
However, please keep in mind that the Angular Provider you're modifying is a shared resource and WILL impact ANY widget that's using it!
For that reason, I would recommend just creating your own widget that doesn't use the Angular Provider, especially if you don't need all the features the OOB offers.
Hope that helps!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2018 08:43 PM
nathanfirth any help or pointers would be appreciated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2018 09:20 PM
Creating a new widget from scratch may actually be a better approach since the OOB widget has a lot of complex logic, and also relies on an Angular Provider.
That being said, if you're just looking for the quickest way to add images, you can do the following:
The two lines I changed are highlighted. You'll also need to add some styles for the "icon" class. I used:
This will render the categories as follows:
However, please keep in mind that the Angular Provider you're modifying is a shared resource and WILL impact ANY widget that's using it!
For that reason, I would recommend just creating your own widget that doesn't use the Angular Provider, especially if you don't need all the features the OOB offers.
Hope that helps!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2018 09:06 PM
See if this is helpful Customizing the SC Categories Widget in Service Portal [Istanbul]