I want to show a page label within the content the same way as it appears at the bottom of the page. I got to the stage where the labels are displayed following this suggestion by Steve (https://community.atlassian.com/t5/Answers-Developer-Questions/Is-there-a-way-to-place-a-list-of-the-page-s-labels-in-a/qaq-p/570841), but the rendered labels are simple text, not hyperlinks. My code is the following:
## Macro title: Page labels
## Macro has a body: N
## Body processing: No macro body
## Developed by: Steve Behnke
#set($currentPage = $pageManager.getPage($content.getId()))
#set($pageLabels = $currentPage.getLabels())
#foreach( $labelObject in $pageLabels )
I guess the link element should go into the #foreach section, but I don't know how. Any help is much appreciated.
Hi, Confluence collaborators! As part of #Confluence-Collaboratory month, we’ve created a very special Mythsbusters segment, where we're dive into an interesting myth and uncover the truth behind i...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events