I am working on an discourse forum and I need to add unique HTML content below the topic body for specific topics. The HTML content should be displayed only on certain topics and not on all topics.
Currently, I have added the HTML content using the following code:
<script type="text/x-handlebars" data-template-name="connectors/topic-area-bottom/custom-html">
<div class="banner-control">
<!-- Unique HTML content goes here -->
</div>
</script>
This code is added to the connectors/topic-area-bottom outlet, but it is displaying the content on all topics. My goal is to have this content appear only on specific topics, not on every topic page.
Details:
The topic page does not have a unique body class like the category pages. I need a way to conditionally render this HTML content based on the topic being viewed. Question: How can I modify my code or setup in Ember.js to ensure that the custom HTML content under the topic-area-bottom outlet is only shown for specific topics? Is there a way to add a condition to check for specific topic IDs or other identifiers?
Any guidance or examples would be greatly appreciated!