Access Keys:
Skip to content (Access Key - 0)

create-child macro

Under Consruction

Description

The create-child macro is used for automatically creating child pages....

Usage

{create-child:Child Page Name}

Parameters

the "Ver" column shows which version of Theme Builder the parameter became available in.

Property Required Default Notes Theme Panels Only Ver
default None The name of the child page to be created (if it already exists in the space but is not a child of the current page then a number will be appended)    
template none template - the name of the template to apply to the child page
Possible values:
  • LAYOUTID:resource.ext - a resource in a specific layout
  • @current:resource.ext - a resource in the current layout
  • @parent:resource.ext - a resource in the current layouts parent
  • SPACEKEY:pagename - a specific page in a specific space
  • pagename - a specific page in the current space
  • templatename - the name of a space or global template
   
render false Whether to render the child page after it has been generated (can be used to trigger nested {create-child} macros)    
parent @self The parent page
Possible values:
  • SPACEKEY:pagename - a specific page in a specific space
  • pagename - a specific page in the current space
  • @self - the current page
  • @current - same as @self
  • @parent - the parent of the current page
  • @parentparent - the parent of the current page's parent
  • @orphan - as an orphaned page in the current space
  • @space - same as @orphan
  • @root - the root of the current page's tree
  • @home - the homepage of currently viewed space
   

Examples

To follow

Basic Use

CSS Customisation

To follow

Hints and Tips

None at present.

Frequently Asked Questions

None at present.



Ask questions, get help and report bugs & issues on our Community Site

View old comments


Adaptavist Theme Builder Powered by Atlassian Confluence