/
Child Counter Supplier

Child Counter Supplier

This page is only applicable for the Server version.


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.

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 app.

Details

Name:

Child Counter Supplier

Prefix:

child-counter(required)

Supported Content:

Pages

Provided By:

Linking for Confluence

Supported Keys

List of keys 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

  • 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 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 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}

Related content