Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents
minLevel1
maxLevel2
outlinefalse
typeflat
separatorpipe
printablefalse

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:

Pages

Provided By:

Linking for Confluence

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

. If

  • if no children have been added, this defaults to 1

.
Info

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}