Listing All the Titles of Children Pages

Scenario

This recipe shows you how you can use the Collect parameter from the Collection Supplier to return all children pages within a space.


Result


Recipe

Ingredients

Add-ons

Reporting

Platform

Server

Level

ADVANCED

Estimated time

15 minutes

Macros

Suppliers

Storage format

Macro structure

You can recreate the example in the editor view:

Steps

  1. Create a Report Table macro.

  2. Within the Report Table macro, create a Content Reporter macro.

  3. Within the Content Reporter macro, create a Text Filter macro.
    Set the Key parameter to page:children.
    Check the Required parameter.

    We're setting up a Text Filter macro here because we want the Content Reporter to only search pages with children. Or else it would search for all pages which may be resource intensive.

  4. Within the Report Table macro and under the Content Reporter macro, create a Report Column macro.
    Set the Title parameter to Parent Page.

  5. Within the Report Column macro, create a Report Info macro.
    Set the Key parameter to page:title.
    Check the Link to Item parameter.

  6. Back within the Report Table macro, create another Report Column macro.
    Set the Title parameter to Children.

  7. Within the Report Column macro, create a Report Info macro.
    Set the Key parameter to page:children>collect "title".