- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2024 11:36 AM
Hi, How can I configure an announcement (message) to be displayed exclusively on a specific sub-topic page within a taxonomy?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2024 08:43 PM
Finally, I found a solution. I will leave it here for the dear developers.
I created a widget and added that widget to the taxonomy page using the page designer.
html
<div class="alert" ng-if="c.showAlert">
<p>WRITE YOU MESSAGE HERE.</p>
</div>
Clint side script
api.controller=function() {
/* widget controller */
var c = this;
c.showAlert = c.data.topicId == 'put topicID from your page';
};
Server side
(function() {
/* populate the 'data' object */
/* e.g., data.table = $sp.getValue('table'); */
data.topicId = $sp.getParameter("topic_id");
})();
CSS
.alert {
margin:14px;
background-color: ##fdda16;
color: black;
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2024 01:29 AM
Hi,
Step1: Add the Announcement Widget to Taxonomy page using Page Designer.
Step2: Create a Rich Text Content with your desired message.
Step3: While publishing the content select the taxonomy page
->then select Announcement Widget
-> then select the taxonomy
-> then select the Topic which you want to publish
Regards,
Bubuprasad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2024 11:45 AM
Thank you for your quick response. Where do I Create a Rich Text Content? Could you please guide me?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2024 11:48 AM
Hi, Thank you for your quick response. Where do I Create a Rich Text Content? Could you please guide me?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2024 12:40 AM
Please follow this link for how to create Rich text content.
https://docs.servicenow.com/bundle/washingtondc-employee-service-management/page/product/employee-ce...