How to restrict banner to some specific page tree pages in confluence?
You can follow this guide to set an announcement banner in Confluence server/Data Center.
Thanks,
Kian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@khushboo_puri,
Try something like this:
<div style="">
<p style="display: none;" id="demo">YOUR ANNOUNCEMENT</p>
</div>
<script>
if(document.querySelector('meta[name="ajs-space-name"]').content == "YOUR SPACE NAME"){
document.getElementById("demo").style = "display: block;";
}
</script>
Please note that you will need to update space name to match your space name. If you want multiple spaces to show the banner you can update the if to include multiple space names.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.