News Ticker Widget
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2018 01:13 AM
Hi,
I have copied the OOTB news ticker widget and want to only display knowledge from the News category within the Knowledge Base. Please can soomeone offer advice on how to do this?
Thanks in advance.
John Gallacher
- Labels:
-
Service Portal Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2018 02:58 AM
Hi John,
Goto System UI -> UI Pages -> render_gadget_news
Just update the query for the information you want to display.
Some links
Creating a Custom Homepage Widget - ServiceNow Wiki
Using UI Pages as Gauges - ServiceNow Wiki
Also, You should be able to add any homepage content to a cms page using the add content functionality on the CMS page.
Thanks,
Adi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2018 06:38 AM
Do you mean on the portal?
If so, you can write the encoded query in the instance options for the widget. You could also make it a bit prettier, if you added a new instance option that points to knowledge bases, and then add the options.knowledge_base (or whatever you call it) to the encoded query on the server script.
So instead of gr.addEncodedQuery(options.filter);you could write gr.addEncodedQuery('kb_knowledge_base='+options.knowledge_base); Or have them both just add ^infront of kb_knowledge_base.
Best regards,
Sebastian Laursen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2018 03:46 AM
Hi Sebastian,
Do you know if we can roll the news ticker in horizontal direction instead of the OOB vertical scroll?
Thanks,
Sreejith
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2018 01:58 AM