Making a List of Pages by Displaying Only a Part of the Title

Scenario

Combining Text Supplier with Collection Supplier is useful in returning specific text you need from a collection of data (lists, sets and arrays).

In this example, we are building a report that extracts IT personnel's name from every page title under the same parent page. This is useful if you're compiling a list of names from many children pages into a single page.

Let's say you have the following page structure: 

This recipe will allow you to build the report on the IT Personnel page and extract the personnel's name from the children page titles (after the hyphen) to be displayed in the report.


Result


Recipe

Ingredients

Add-ons

Platform

Level

INTERMEDIATE

Estimated time

15 minutes

Macros

Suppliers

Storage format

Macro structure

You can recreate the example in the editor view:

Steps

  1. Add a report-list macro.

  2. Add the content-reporter macro within a report-list macro and specify the following:
    - Spaces@self
    - Types: page
    - Scope: IT Personnel > children 
    - Match All Criteria: true

  3. Add a text-filter macro within content-reporter macro and specify the Key as content:title.

  4. Add a report-body macro within the report-list macro.

  5. Add a report-info macro within the report-body macro and specify the Key as content:title > text:split with - > collection:last.

  6. Save the page.