I am looking for a way to display a red info macro or custom html at the top of my confluence space pages, and only in cases it's tagged with a specific label. For example, if a page label includes "techonly" then I want the message box to be displayed and text with something like "Only a technician can assist with this issue"
I looked a little at the decorator macros and found the #helpicon() but couldn't make it render even while testing.
Any ideas on how to accomplish? Good place for info?
Thanks in advance.
Well I can't give you an answer, but some suggestions on how to solve this. I would write a user macro that displays panel macro (or note), if a label is present on the page (fairly straightforward). And I will point you to another answer that should give you a starting point on how to read labels on a page.
Now this means the macro has to be added to each page, a bit of pain. But it could be made part of a template when creating a page.
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
An efficient enterprise content management system, or ECM, is a must-have for companies that create work online (cough cough, all companies). If content calendars, marketing plans, and bu...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs