Using Links to Create Pages from Live Templates

Scenario

You might want to guide users in creating content in Confluence, by providing a one-click link to create a page with a structured layout by:

  • When used with Scaffolding, automatically create a page based on a Live Template.
  • Automatically suggest a page title
  • Automatically categorize a page under a parent page
  • Automatically add labels to the page

If you don't have Scaffolding, check out Using Links to Create Pages from Confluence Templates.


Result


Recipe

Ingredients

Add-ons

Platform

Server, Data Center

Level

EASY

Estimated time

10 minutes

Macros

Suppliers

Storage format

Macro structure

You can recreate the example in the editor view:

Steps

  1. Create an Add Page macro.

  2. For the parameter Link Text, enter the title of the link e.g. "Create a new 'How-to' article". 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:

    1. Source parameter determines the name of the Live Template to use. E.g. "How-to article live template".
    2. Source type is set to "template" since it is based on a Live Template.
    3. Check the "Live Template" parameter, so that the page to be created will always be updated when the Live Template is updated.

  4. If you need to add a little bit of standard in page titles, make use of Prefix and Postfix parameters. In this example, we add "How-to " as Prefix, so all page titles will start with "How to (do something)".

  5. To ensure organized space, make use of the Parent parameter, which tells Linking where to create the page. Useful to automatically categorize the pages.

  6. To automatically add label to the pages, we specify "how" for Labels parameter.