
- 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-15-2024 08:33 PM
when I try to publish, my announcement widget does not appear on the widget search. probably I am missing something on 1 step.
When I create an Announcement widget, the scope is Global (it is not allowing me on other scopes). and I apply it to the Employee Taxonomy Topic paged on the Page Designer. What could be wrong?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2024 06:44 AM
I believe I am missing something when I create a widget. I am not able to call it when I want to publish rich content. Can you guide me on step 1?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2024 06:21 AM
Please mark as Correct for closer of the thread.
Thanks in advance.

- 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;
}