Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

On this page:

Table of Contents
maxLevel4
minLevel2
maxLevel4

Usage with the Macro Browser

...

Panel
borderColor#ccc
bgColor#D5EFFF
titleBGColor#F7D6C1
borderStyledashed
Excerpt Include
nopanel
Navigating to the Macro Browsertrue
Navigating to the Macro Browser
nopaneltrue

Once you've found the content by label macro, click 'insert' to add it to your page.

...

Excerpt Include
_Details_about_macro_parametersnopaneltrue
_Details_about_macro_parameters
nopaneltrue

Parameter

Default

Description

(author)

None

Filter the results by author. The macro will display only the pages etc which are written or updated by the author(s) you specify here.

You can specify one or more authors, separated by a comma.

Excerpt Include
_Pattern Matching for Author Macro Parameternopaneltrue
_Pattern Matching for Author Macro Parameter
nopaneltrue

Label(s)
(label) or (labels)

None

This parameter is required.

Use this parameter to filter the results by label. The macro will display only the pages etc which are tagged with the label(s) you specify here.

You can specify one or more label values, separated by a comma or a space.

Excerpt Include
_Pattern Matching for Label Macro Parameternopaneltrue
_Pattern Matching for Label Macro Parameter
nopaneltrue

Maximum Number of Pages
(max) or (maxResults)

15

Specify the maximum number of results to be displayed. Note that the results are sorted first, and then the maximum parameter is applied.

(operator)

OR

The operator to apply to the supplied lists of labels. By default, a page with any of the non-prefixed labels (that is, labels without a plus (+) or minus (-) sign immediately preceding it) will be listed. By using operator=AND, only pages with all of the supplied non-prefixed labels will be listed.

(info) Be aware that this parameter only modifies the behaviour of the 'Label(s)' parameter and only affects label values without a plus (+) or minus (-) sign prefix. To avoid confusion or unexpected results, it is not recommended that the operator parameter be used in conjunction with any label values prefixed with '+' or '-' signs.

Show Labels for Each Page
(showLabels)

true

Show or hide labels for results.

Show Space Name for Each Page
(showSpace)

true

Show or hide spaces for results.

Reverse Sort
(reverse)

false

Use this parameter in conjunction with the sort parameter described below. Set reverse=true to change the sort from ascending to descending.

(info) this parameter is ignored if the sort parameter is not specified.

Sort By
(sort)

modified

Specify how the results should be sorted. To change the sort order from ascending to descending, use the reverse parameter described above.

Note: If this parameter is not specified, the sort order defaults to descending order based on the last modification date.

Values:

Excerpt Include
_Special Values for Sort Macro Parameter
nopaneltrue
_Special Values for Sort Macro Parameter
nopaneltrue

Restrict to these Spaces
(space) or (spaces)

@all, i.e. all spaces in your Confluence site.

This parameter allows you to filter content by space. The macro will display only the pages etc. which belong to the space(s) you specify here.

You can specify one or more space keys, separated by a comma or a space.

Excerpt Include
_Pattern Matching for Space Macro Parameter
nopaneltrue
_Pattern Matching for Space Macro Parameter
nopaneltrue

Special values:

Excerpt Include
_Special Values for Space Macro Parameter
nopaneltrue
_Special Values for Space Macro Parameter
nopaneltrue

List Title
(title)

None

Adds a title or heading to the list.

Include these Content Types Only
(type)

all

This parameter allows you to filter content by content type. The macro will display only the content of the type you specify here.

You can specify one or more types, separated by a comma or a space.

Excerpt Include
_Pattern Matching for Content Type Macro Parameter
nopaneltrue
_Pattern Matching for Content Type Macro Parameter
nopaneltrue

Available values:

Display Excerpts
(excerpt)

false

Displays excerpts for each page listed in the Content by Label macro. Note that you must define the excerpts on each of those pages, by adding the excerpt macro to each page. If a particular page does not have an excerpt defined, then the Content by Label macro will not attempt to show an excerpt for that page. The Content by Label macro will show only the first few lines of the excerpt for each page.

...