Child Counter Supplier
Overview
Provides access to the current and next counter for the number of children added to a page in Confluence.
To avoid counting children on pages that don't care, by default child pages are not counted. Once you request child-counter:next, it will start counting from that point onwards.
You can control if it is enabled/disabled/reset the number using the Child Counter Status macro from the Linking for Confluence plugin.
Details
Name: | Child Counter Supplier |
Prefix: | child-counter(required) |
Supported Content: | |
Provided By: |
Supported Keys
The following are the list of keys which 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. If no children have been added, this defaults to 1. Once this has been requested, child counting is enabled. |
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}