Displays the children and descendants of the current page.
Usage: {children} OR {children:page=a_page_title} OR {children:all=true} OR {children:depth=a_depth} OR {children:depth=_a_depth_|style=heading_style} OR {children:_sort=<mode>|reverse=<true or false>
}
parameter |
必須 |
既定 |
説明 |
ページ |
いいえ |
the current page |
Specify which page to display children for |
depth |
いいえ |
なし |
Specify the depth of descendents to display |
style |
いいえ |
なし |
One of "h1", "h2" .... "h6" - displays children in a contents view |
excerpt |
いいえ |
false |
Display the child pages' excerpts (if they exist) |
並べ替え |
いいえ |
title |
The 'sort' attribute is an optional attribute that allows you to configure how the children are sorted. Specify 'creation' to sort by content creation date, 'title' to sort alphabetically on title and 'modified' to sort of last modification date. |
リバース |
いいえ |
false |
Use the reverse attribute to optionally reverse the sorting. |
例 1:
{children:all=true}
gives:
例 2:
A depth of 1 will only display the first generation descendents of the current page. That is it will only display the direct children of the current page.
{children:depth=1}
gives:
例 3:
A style of "h3" will display the page's direct children as level 3 headings, with their children as lists below the headings. Very useful for quickly generating a contents page
{children:all=true|style=h3}
gives