Add metadata and content sections to a Confluence page

Add metadata and content sections using macros when authoring a Confluence page. These will be inserted into the selected html template when the page is published to the cloud.

Add metadata

Add metadata using the Page metadata macro. Type / (backslash) while editing a page, type Page metadata and then select the macro from the list. The macro will be added to the page.

Typing backslash while editing a page, then typing 'Page metadata' and selecting the Page metadata macro from the list

Select the macro and press the Edit icon (pencil).

Selecting the Edit icon (pencil) on a Page metadata macro

Add a name and value in the configuration panel on the right hand side. The name can be a mix of letters, numbers and dashes only, up to a maximum of 40 characters. Information entered into he configuration panel is automatically saved.

Entering name and value for a Page metadata macro in the configuration panel on the right hand side

Metadata defined with the Page metadata macro only appears where it is inserted in a template (not in the main content or in content sections). This enables html metadata, e.g. for a title tag, to be authored with page content.

Add a content section

Add metadata using the Named content section macro. Type / (backslash) while editing a page, type Named content section and then select the macro from the list. The macro will be added to the page.

Typing backslash while editing a page, then typing 'Named content section' and selecting the Named content section macro from the list

Select the macro and press the Edit icon (pencil).

Selecting the Edit icon (pencil) on a Named content section macro

Add a name in the configuration panel on the right hand side. The name can be a mix of letters, numbers and dashes only, up to a maximum of 40 characters. Information entered into he configuration panel is automatically saved.

Entering name for a Named content section macro in the configuration panel on the right hand side

How the boundaries of a content section are calculated

Only the content beneath a Named content section macro will be included in that content section.

See: Determine the boundaries of a 'Named content section'

Quickly find any Publish to Cloud macro

To quickly find any Publish to Cloud macro type / (backslash) while editing a page, type Publish to Cloud and then select a macro from the list.

Typing backslash while editing a page, then typing 'Publish to Cloud' and selecting a macro from the list

Publish to Cloud for Confluence docs