Confluence 4.1 has reached end of life
Check out the [latest version] of the documentation
The Content by Label macro shows links to content which has been tagged with specific labels.
On this page:
Using the Content by Label Macro
To add the Content by Label macro to a page:
Speeding up macro entry with autocomplete: To edit an existing macro: Click the macro placeholder and choose Edit. This will display the parameters of the macro in the Macro Browser.
Working Example of Usage
Below is a working example of the Content by Label macro, displaying content with the label "LDAP".
-
External user directories (Bitbucket Data Center 10.2)
-
Connect to an LDAP directory (Bitbucket Data Center 10.2)
-
Delegate authentication to an LDAP directory (Bitbucket Data Center 10.2)
-
-
Parameters
Parameters are options that you can set to control the content or format of the macro output.
Parameter | Default | Description |
|---|---|---|
Label(s) | None | Filter by label(s) — only that content tagged with the label(s) specified is displayed. See also the Operator parameter below.
|
Author(s) | None | Filter by author — only that content created or updated by the author(s) specified is displayed. |
Include this Content Type Only | all | Filter by content type — only content of the type specified is displayed. To exclude content of a given content type, put a minus sign (-) immediately in front of that content type. For example: If you specify a content type of Available values:
|
Show Labels for Each Page | true | Show or hide labels for results. |
Show Space Name for Each Page | true | Show or hide spaces for results. |
List Title | None | Adds a title or heading to the list. |
Maximum Number of Pages | 15 | Limits the maximum number of results to be displayed. Note that the results are sorted first, and then the maximum parameter is applied. |
Display Excerpts | false | Includes excerpts from each page listed. Note that you must have defined excerpts on each of those pages, by adding the excerpt macro to the page. Only the first few lines of the excerpt for each page are displayed. |
Restrict to these Spaces | @all | Filter by space — only that content which belongs to the space(s) specified is displayed.
Special values:
|
Operator | OR | The operator to apply to the labels specified in Label(s):
|
Sort By | modified | Specify how the results should be sorted.
Note: If this parameter is not specified, the sort order defaults to descending order based on the last modification date (i.e. latest first). To change the sort order from ascending to descending, use the Reverse Sort parameter. |
Reverse Sort | false | Select Reverse Sort to change the sort from descending to ascending. Use this parameter in conjunction with the Sort By parameter — Reverse Sort is ignored if Sort By is not specified. |
Related Topics
Related Labels Macro
Navigation Map Macro
Recently Used Labels Macro
Working with Labels
Working with Macros
Take me back to the Confluence User's Guide.
