Displaying a List of Children for a Page with Customized Details

Scenario

If the Children Display macro is too basic, and you require much more finesse in what sort of data is displayed along with the children pages, then Reporting allows listing of children pages complete with customized details.

This recipe enables you to list the children pages together with their modified dates as well as the person who modified the pages.

ProTip

If you'd like to display only the children of the children pages, check out the Displaying a List of Only Grandchildren Pages page.


Result


Recipe

Ingredients

Add-ons

Reporting

Platform

Level

INTERMEDIATE

Estimated time

30 minutes

Macros

Suppliers

Storage format

Macro structure

You can recreate the example in the editor view:

Steps

Line

Description

1

The report will be formatted as a list with Report List, which displays each of the items from a reporter as a list item. Parameter depth is set to 'all' to list descendants with different depth levels.

2

Local Reporter is used get the children of the current page, setting supplier key to 'Content Supplier'.

3

Date Sort is used to sort the children returned from the Local Reporter from latest to oldest, by setting supplier key to 'Content Supplier', and setting order to 'descending'.

4

Report Body is used as a container for displaying reported values.

5

The title of the individual child content returned from Local Reporter is displayed via Report Info, by setting supplier key to 'Content Supplier'. Setting link to 'true' will make the item a link to the page.

6

The date the child page is last modified is displayed via Report Info, by setting supplier key to 'Content Supplier'. Format is set to 'format=dd MMM, yyyy'.

7

The user who last modified the page is displayed via Report Info, by setting supplier key to 'Content Supplier'. The name is made a link to the user's homepage, by setting field link to 'true'.