Table of Contents | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Overview
Provides access to the current and next counter for the number of children added to a page in Confluence.
Once you request child-counter:next, it will start counting from that point onwards.
Info |
---|
To avoid counting children on pages that don't care, by default child pages are not counted |
...
. |
You can control if it is enabled/disabled/reset the number using the Child Counter Status macro from the Linking for Confluence plugin app.
Details
Name: | Child Counter Supplier |
---|---|
Prefix: | child-counter(required) |
Supported Content: | |
Provided By: |
Supported Keys
The following are the list List of keys which that this supplier will return a value for.
Key | Content Types | Return Type | Description |
---|---|---|---|
current | Page | Number | The current child counter value. If counting is not enabled, will return a blank value. |
next | Page | Number | The next child counter value |
|
|
Examples
Fixed Name with the count as a postfix
In this case, we will have every child having the exact same name, other than a unique 3-digit number at the end.
{add-page:name=Child Page %child-counter:next > number:000%}Add 'Child Page {report-info:child-counter:next}'{add-page}
User-supplied name with number prefix
In this case, we will add "(X)" at the beginning of whatever the user provides as a page name, where 'X' is the next child counter value.
{add-page-form:prefix=(%child-counter:next%) }Add Page{add-page-form}