News Ticker Widget

johngallacher
Kilo Explorer

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

5 REPLIES 5

Aditya Telideva
ServiceNow Employee
ServiceNow Employee

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


Sebastian L
Mega Sage

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

Hi Sebastian,



Do you know if we can roll the news ticker in horizontal direction instead of the OOB vertical scroll?



Thanks,


Sreejith


Anjana8
Kilo Contributor

Instead of cloning widget, you can make its instance and put condition like below:-

 

find_real_file.png