Generate Page Link

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


parent

Parent Page

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

confluence-content


template

Template

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

string


skinId

Skin ID

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

string


mode

Result mode

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

enum

view

class

Class

The CSS class to apply to the link

string


id

ID

The HTML ID to apply to the link

string


render

Render

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

boolean

false

flag

Flag

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

string


notflag

Not Flag

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

string


Example

Use the following HTML code to 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.

On this page