Child Counter Status

Description

(warning) This macro is currently not available on Cloud.

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

NameRequiredAvailable InMigratable to Cloud?Default ValueDescription

Action

 (tick)

Server, Data Center

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

 (error)

Server, Data Center

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.