I am using the reporting plug-in macros to generate a list of child pages along with their modification dates. I want the reporter to do the sorting. Can anyone suggest any mistakes in this syntax?
h3. Software Release Planning Documents {report-table} @{content-reporter:space=@self|types=+page|scope=@self > descendents} {text-sort:content:modification date|order=descending} {content-reporter} {report-column:title=Title}{report-info:page:title|link=true}{report-column} {report-column:title=Last Modified}{report-info:page:modification date}{report-column} {report-table}
Here are the results I see (note the sorting does not happen)
https://docs.google.com/leaf?id=0B_HuVg-yTgznZjU5YTc5OTktYzQ3Mi00YjgxLTg2ZDUtMzc2YWE5OWJlMmU1&hl=en_US
The answer is: use date-sort instead of text-sort for date fields.
{report-table} @{content-reporter:space=@self|types=+page|scope=@self > descendents} {date-sort:content:modification date|order=descending} {content-reporter} {report-column:title=Title}{report-info:page:title|link=true}{report-column} {report-column:title=Last Modified}{report-info:page:modification date}{report-column} {report-table}
{report-table}
@{content-reporter:space=@self|types=+page|scope=@self > descendents}
{date-sort:content:modification date|order=descending}
{content-reporter}
{report-column:title=Title}{report-info:page:title|link=true}{report-column}
{report-column:title=Last Modified}{report-info:page:modification date}{report-column}
It looks like you're new here. Sign in or register to get started.