Breadcrumbs

Create Pages Button Macro

With the Create Pages Button macro, you can copy a page or a page tree with a single click. The Create Pages Button can be inserted on any regular Confluence page.


Macro Parameters

Parameter

Input Field Type

Description

Button Name

required

Text Field

Give your button a name, special characters and placeholders are allowed.

Source Page

required

Text Field / Dropdown

Specifies the root page of your template. This template is a normal confluence page. When the button is clicked, the root page and all its children are used as template for the new page tree.

Target Page

Dropdown

Defines where the new pages are added to.

If the field is empty the target page will be the child page of the page where the button is.

Top Page Labels

Text Field

Values entered here are attached only to the root page of the newly created page tree.

Permitted Groups

Test Field

Groups entered here are allowed to use the button. If no group is specified all users are allowed to use the button.

Hide disabled Button

Checkbox

If checked, the button is hidden for users who haven't got permission to use the button.

Resolve Page Titles

Checkbox

If unchecked and using the button with same parameters for a second time, it would result in an error.

If checked, duplicated page title conflicts are avoided

Watch Pages

Dropdown

Select if only the main/source page, all pages or no pages should be watched after instantiation.

Edit Mode

Checkbox

If checked, you get redirected to the edit mode of the copied page after instantiation.

Copy Options

Checkbox

Defines the content that will be copied to the new page

  • Attachments - Attachments will be copied

  • Labels - Labels will be copied

  • Restrictions - Restrictions will be copied


Customize Wizard - Macro Parameters

Parameter

Input Field Type

Description

Source Select

Radio Button

Defines whether the source page option is displayed in the creation wizard

  • Show - Displays source selection in the creation wizard.

  • Hide - Hides the source selection in the creation wizard.

  • Disabled - Displays source selection in the creation wizard but disables the dropdowns.

Target Select

Radio Button

Defines whether the target page option is displayed in the creation wizard

  • Show - Displays target selection in the creation wizard.

  • Hide - Hides the target selection in the creation wizard.

  • Disabled - Displays target selection in the creation wizard but disables the dropdowns.

Page Selection

Checkbox

When checked, the user will be able to select/deselect sub-pages of the page being copied in the wizard. If a page is selected, it will be copied.

Show Page Title Prefix

Checkbox

Defines whether the page title prefix input field is displayed in the creation wizard

Show Copy Options

Checkbox

Defines whether the checkbox to change the copy behavior of the selected item is displayed in the wizard.

  • Attachments - Show option to copy Attachments

  • Labels - Show option to copy Labels

  • Restrictions - Show option to copy Restrictions