Related Labels Macro
Add the Related Labels macro to give people a way to navigate to related content in your site.
It works by finding labels that pages have in common. It takes the label used on the current page, looks for other pages that use this label, and then lists any other labels that are found on those pages.
This macro is great for:
- Knowledge base articles
- Process and procedure documentation.
Basically any situation where you want a map of related pages in your site. The list updates automatically, as labels are added and removed from pages over time.
Screenshot: the Related Labels macro guiding people to related articles in a knowledge base.
Add this macro to your page
To add the Related Labels macro to a page:
- Unable to render {include} The included page could not be found.
- Choose Related Labels from the Confluence content category.
- Enter specific labels the macros should look for, or leave blank to use any labels on the page.
- Choose Insert.
You can then publish your page to see the macro in action.
Screenshot: configuring the Related Labels macro in the macro browser.
Change the macro parameters
Here's a list of the parameters available in this macro.
Parameter | Default | Description |
---|---|---|
Restrict to these Labels | none | Specify the labels for which you want to view related labels. For example, |
Other ways to add this macro
Add this macro as you type
Add this macro using wiki markup
Macro name: related-labels
Macro body: None.
{related-labels:labels=choc,cake}