This documentation has moved. For the most recent documentation, check out https://docs.adaptavist.com. Please update your bookmarks and links.

Skip to end of metadata
Go to start of metadata

Creates a link to an action that creates child pages

Categories: confluence-content

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 that should be used for the created page

string

 

(tick)

parent

Parent Page

The page where the child should be created, defaults to the current page

confluence-content

 

(error)

template

Templatel

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 that should be 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)

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}

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