Modify 'Recent & Popular Items' widget to show custom lists
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2020 09:01 AM
Hello,
On my service portal, i would like to have a widget that is tabbed like the Recent & Popular Items widget, except show My Requests, Popular knowledge articles, Wishlist items, etc. instead of recent items and popular items. Does anyone have any ideas on how i could modify this widget to work this way? Or any other ideas? I know this could potentially be a lot of work so i am setting my expectations low. But any help towards this goal is appreciated.
Thanks!
- Labels:
-
Multiple Versions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2020 10:50 AM
You could clone the Recent & Popular Items widget, and then instead of looping through the "data.recentItems" and "data.popularItems", replace those with the records you wish to display...but if you aren't looking to rebuild the wheel, similar implementations are already out there:
https://community.servicenow.com/community?id=community_blog&sys_id=3e0d2ea5dbd0dbc01dcaf3231f96190f
https://www.cernasolutions.com/post/tab-style-menu-for-simple-lists
My recommendation would be to upload/implement one or two of those into your PDI and see if you can change the tables that pull the data you want.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2020 12:05 PM
Thanks for the response. I will check out these links and let you know.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2020 11:27 AM
Do you by chance have any CSS skills? I am trying to change the color of the tabs, but having difficulties. I am change the color of the non-active tab, but cant figure out the active tab color. Also, how to fix the hover over color.
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2020 11:27 AM
i can give the code i have so far if that will help