Using Links to Create Pages from Confluence Templates

Scenario

You might want to guide Confluence users in creating content by providing one-click links to create pages with a structured layout. These auto-generated pages can:

  • Automatically use a Confluence template as the base structure.

  • Automatically suggest a page title

  • Automatically categorize a page under a parent page

  • Automatically add labels to the page

Result

Recipe

Apps

 

Linking for Confluence Cloud

 

Apps

 

Linking for Confluence Cloud

 

Platform

Cloud

Level

Easy

Estimated time

5 minutes ⏱

Macros

Add Page

Storage format

You can copy and paste this code into the Confluence Source Editor:

N/A

Macro structure

You can recreate the example in the editor view:

Steps

  1. Create an Add Page macro.

  2. For the Create Link Text parameter, enter text for the link e.g. "Create a new Product". Users will see this text when viewing the link on the page.

  3. To decide what will happen when a user clicks on the link, specify the source parameters:

    • Source parameter determines the name of the Confluence template to use. E.g. "Product template".

    • Source type is set to "template" since it is based on a Confluence template.

  4. Expand the Configure page title prefix/postfix and make use of Prefix and Postfix parameters. In this example, we add "Product - " as postfix, so all page titles will start with "Product - (Name of Product)".

  5. To ensure an organized space, make use of the Parent parameter, which tells Linking where to create the page. This is useful for automatically categorizing the pages. For this example, we are using "@parent".

  6. You can also automatically add label(s) to the pages. For this example, we specify "product" in the Labels parameter.

  7. Click Save to insert the macro. Repeat the previous steps as needed, then Publish the page.

Line-by-Line Explanation

N/A