How to get count of records (pages or scaffold data) in the query by Reporting plugin ?
How to get count of records (pages or scaffold data) in the query by Reporting plugin ?
For example, this code shows the number of children pages:
{report-info:content:children > size}
But I need to calculate the count of pages with specific text in a title.
For example, this code shows the number of children pages:
{report-info:content:children > size}
But I need to calculate the count of pages with specific text in a title.
2
people have this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
-
Inappropriate?Unfortunately, it's not possible with the current version of Reporting. The closest you can get is using the 'summaryType' options in the {report-column} macro. Unfortunately, this means you have to output a Table to get your summary value.
The next version of Reportingn will have a 'stats' supplier, which will make it possible to do more complex statistice reporting, but I'm not sure if it will do exactly what you're after. -
Inappropriate?You can do it something like this, but it's hard to do much with the value:
{report-block}
{local-reporter:children}
{text-filter:data:FavColor|include=(?i).*Blue.*}
{local-reporter}
{report-body}{report-body}
{report-footer}Count: {report-info:report:item number}{report-footer}
{report-block}
Obviously you would change your filter. :-)
Loading Profile...



EMPLOYEE
