Skip to main content
Skip table of contents

Child Count Macro

Use the Child Count Macro to count the amount of child pages with a certain label. Add the macro to a page and enter the label you want to check for and the page id of the parent page. If you want to count the pages of an entire space, enter the page id of the overview page. Be aware that the page that is entered as parent page will not be counted.


Macro Parameters

Parameter

Type

Description

Default Value

Label

Text-Input

Child pages with this label will be counted. If left empty, all children will be counted.

empty

Parent Page Id

Text-Input

Id of the page whose children will be counted. (The page id can be found in the URL of the page)

empty

Example Confluence URL:

CODE
{confluence-cloud-instance-name}.atlassian.net/wiki/spaces/{space-key}/pages/{page-id}/{page-name}

Example Confluence URL while editing a page:

CODE
{confluence-cloud-instance-name}.atlassian.net/wiki/spaces/{space-key}/pages/edit-v2/{page-id}

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.