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

ThemeBuilder Macro - First Child

first-child

Renders the content of the first child of a specified page

Categories: navigation

Usage

Storage Format

<ac:macro ac:name="first-child">
  <ac:parameter ac:name="parameter">value</ac:parameter>
</ac:macro>

Wiki Markup

{first-child:parameter=value}

Parameter

Name

Description

Type

Default

Required

parent

Parent

The page whose first child should be shown, in the format spacekey:pagename

confluence-content

@self

(error)

sort

Sort

The order that the page list of pages should be sorted before the first child is selected

enum

unsorted

(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

Show the content of the first child of a page inside the parent page. The macro works in a similar way to a page include, but focuses on the first child page.

<ac:macro ac:name="first-child">
  <ac:parameter ac:name="parent">AD:Second Level Page</ac:parameter>
</ac:macro>
{first-child:parent=AD:Second Level Page}

 

Result

The first section is content written into the Second Level Page, then below is content pulled from its child page.