×

You're using an outdated browser

For a better experience, keep your browser up to date. Check here for the latest version.

Manual

Use page properties as custom placeholders

Nils Bier

Nils Bier Last update: Dec 12, 2017

You can use Confluence page properties to define customized text placeholders in your exports.

Create page properties

To start, you need to create the page properties to be used as placeholders.

  1. Navigate to your export's root page (because page properties are always taken from the export root page)
  2. Insert a Page Properties macro on the page
  3. Add a two-column table into the macro body, with the left column containing the keys (i.e. the page property names), and the right column contains the corresponding page property values.

Using multiple page property macros?

If you insert multiple page property macros on this root page (the page you start the export from), you have to assign an ID to each macro, so you differentiate between them when you refer to them in your export template.

Use the page property as a placeholder

Now you can use the content that you defined in the right-hand column as a placeholder in your export.

  1. Open your template and insert a Page Property placeholder.
  2. When you insert the placeholder, you have to define the Page Property field – here, enter the name of the page property (the left-hand column in the table in the page property macro) which corresponds to the value that you want to add to your export (the content in the right-hand column). If you used multiple page property macros on the root page, add the Macro ID that you defined for the appropriate Page Properties macro.

The value of the page property should now replace the placeholder in your exports.

2xCloud
We use cookies to create a secure and effective browsing experience for our website visitors and to understand how you use our site (i.e. Google Analytics). For more information: click here.
Ok