The Adaptavist Group LogoDocumentation

First Child

This macro renders the content of the first child on a specified page.

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
parentParent The page whose first child should be shown, in the format spacekey:pagenameconfluence-content@self
sortSortThe order that the page list of pages should be sorted before the first child is selectedenumunsorted
flagFlagA list of flags, one of which must be defined for the content to be displayedstring
notflagNot FlagA list of flags that must not be defined for the content to be displayedstring

Example

The following is an example of how to show the content of the first child of a page inside the parent page. The macro works similarly to a Page Include macro 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, and below is content pulled from its child page.

Search documentation

Start typing to search the docs.