Skip to main content
Skip table of contents

Child Counter Status


Description

This macro is currently not available on Cloud.

Macros will be migrated along with the page, and no data will be lost after migration. On Cloud, macros are hidden in View mode, but are visible in Edit mode where they are marked as (Legacy). More details are available on this page.

Allows display of the "current" and "next" Child Counter value, as well as the ability to disable or reset the value if required.

When child counting is enabled for a page, the macro will keep track of how many children have been added to this page over time.

This is different to the "current page count", since it will not decrease when pages are deleted. This makes it useful for creating new pages with unique ID values which will never be duplicated.

Parameters

Name

Required

Migratable to Cloud?

Default Value

Description

Action

  • (/)

  • NO

current

May be one of the following:

  • current

    • Outputs the current 'child count' value.

    • Neither activates or deactivates child counting. The child count value won’t increase as new pages are created.

    • Doesn’t reset ‘child count’ value if already activated.

  • next

    • Outputs the next 'child count' value (current + 1).

    • Activates child counting. The child count value will increase as new pages are created.

    • Doesn’t reset ‘child count’ value if already activated.

  • enable

    • Activates child counting. The child count value will increase as new pages are created.

    • Doesn’t reset ‘child count’ value if already activated.

  • disable

    • Deactivate child counting. The child count value won’t increase as new pages are created.

    • Resets ‘child count’ value to 0.

  • reset

    • Neither activates or deactivates child counting. The child count value won’t increase as new pages are created.

    • Resets ‘child count’ value to 0.

  • reset to X

    • Neither activates or deactivates child counting. The child count value won’t increase as new pages are created.

    • Resets ‘child count’ value to the specified positive number.

Edit permissions on the source are required for enable, disable, and reset actions.

Parent

  • (X)

  • NO

@self

The page you would like to set as the parent of the new page.

If no parent page is desired, set the parent to a blank value.

Otherwise, set to Page Name or SPACEKEY:Page Name.

You may also specify the following values:

  • @self - sets the parent to the new page the macro appears in.

  • @parent - sets the parent of the new page to the parent of the current page.

  • @home - sets the parent of the new page to the home page of the current space.

Editor View

N/A

Macro Edit View

N/A

Notes

N/A




JavaScript errors detected

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

If this problem persists, please contact our support.