To categorize, identify, or bookmark content in Confluence we can use labels. Labels are keywords or tags that can be added to pages, blog posts, attachments, and spaces as metadata. Labels are user-defined so any word that identifies your content can be used.
For example, you can assign the label "requirement" to all pages with project requirements. It is then possible to browse, or list, all pages with that label in a single space or even across Confluence. It is also possible to search content based on that label.
The advantages of using labels are as follows:
Confluence doesn't support multiword labels. Which means that, to label a page with "needs review", the space has to be replaced with another character such as a dash or underscore.
Any user with the permission to edit a page or blog post can also manage labels.
In order to add a label, you will have to perform the following steps:
In order to remove a label, you will have to perform the following steps:
Attachments can also have labels, making it easier to find or filter them. Labels can be added or removed by any user who is allowed to edit the page that holds the attachment.
To add a label to an attachment, perform the following steps:
Labels are deleted the same way as with pages. Click on the X mark next to a label to remove it from the attachment.
A space category is a special label that Confluence uses to group spaces in the space directory and in the recent activity area on the Dashboard. Let's assume that you have one or more spaces that contain information about the same project, Project42. We can categorize all those spaces as "Project42" to group them.
Grouping spaces with categories will reflect in the space browser and you can see the updated content in those spaces by choosing the Project42 category under the Space Categories tab on your dashboard as shown in the following screenshot:
To add a category to a space, perform the following steps:
Categories are removed the same way as labels. Click on the X mark next to the category to remove it.
When you click on a label on a page, blog post, or attachment, you will be forwarded to the labels view. Alternatively, if you are using the documentation theme, go to any page in a space and choose Browse | Labels.
The labels view in a space offers the following features:
Labels are very powerful when used in conjunction with macros to dynamically display content. Confluence comes with the following set of macros for labels:
We will discuss the Content by Label macro as this is probably the most used macro of the set.
The Content by Label macro will find and display a list of all pages, blog posts, and attachments in a space tagged with the specified labels. Imagine yourself with a space full of projects and customer information; with this macro you can easily create an overview of all customers provided you labeled them.
To add the Content by Label macro to a page, perform the following steps:
The following properties are available for the Content By Label macro:
Properties |
Default |
Description |
---|---|---|
The macro will only display content tagged with the labels specified here. You can specify multiple labels separated by a comma. Labels can be excluded by putting a minus ( | ||
This will filter by creator or last updated by. | ||
All |
Set the content type to display. The default will show page, blogpost, and attachments but you can specify one or more content types. | |
Yes |
This shows or hides the labels in the results. | |
Yes |
This shows or hides the spaces in the results. | |
15 |
This limits the maximum number of results to display. Note that the results are sorted first then limited. | |
No |
Display the page excerpt (added by the excerpt macro). | |
@all |
The macro will only display content in the specified spaces. You can specify multiple spaces separated by a comma. To exclude a space add a minus ( The special values include:
| |
OR |
This is the operator to apply when matching content against the specified labels:
Labels prefix with a minus are not affected by this setting. | |
Modified | ||
no |
Select Reverse Sort to change the sort from descending to ascending order. Use this parameter in conjunction with the Sort By parameter. Reverse Sort is ignored if Sort By is not specified. |
18.221.117.214