This macro creates a link to an action that creates child pages.

Usage

Storage Format

<ac:macro ac:name="generate-page-link">
<ac:parameter ac:name="parameter">value</ac:parameter>
<ac:rich-text-body>
<!-- link name here -->
</ac:rich-text-body>
</ac:macro>

Wiki Markup

{generate-page-link:parameter=value}
\\ link name here
{generate-page-link}

Parameter

Name

Description

Type

Default

Required

pagetitle

Page Title

The page title used for the created page

string


check

parent

Parent Page

The page where the child is created (defaults to the current page)

confluence-content


error

template

Template

The template to use when creating the page (may be a Space or Global template, or a skin resource)

string


error

skinId

Skin ID

The skin used when searching for template resources (defaults to the current skin)

string


error

mode

Result mode

Once the page has been created, display it in either Edit or View mode

enum

view

error

class

Class

The CSS class to apply to the link

string


error

id

ID

The HTML ID to apply to the link

string


error

render

Render

Whether to render the resultant page or not (example: so that Create Child macros in the template can be executed)

boolean

false

error

flag

Flag

A list of flags, one of which must be defined for the content to be displayed

string


error

notflag

Not Flag

A list of flags which must not be defined for the content to be displayed

string


error

Example

Add a link that will create a new page called My Page:

<ac:macro ac:name="generate-page-link">
<ac:parameter ac:name="pagetitle">My Page</ac:parameter>
<ac:rich-text-body>
Create a page called My Page
</ac:rich-text-body>
</ac:macro>
{generate-page-link:pagetitle=My Page}
Create a page called My Page
{generate-page-link}

Result

A link displays that will create a page called My Page.