Hello,
I have an hierarchy of pages and subpages with many labels.
I want to know if is possible to have a report wich list all pages with specific label ?
Page
|---subPage 1
|------subsubPage 11 with label "lb1", "lb2"
|------subsubPage 12 with label "lb1"
|---subPage 2
|------subsubPage 21 with label "lb2"
|------subsubPage 22 with label "lb2"
In this sample, I want "subPage 1" list all subsubPage with the label "lb1" (subsubPage 11 and subsubPage 12)
In this sample, I want "subPage 2" list all subsubPage with the label "lb2" ( subsubPage 11, subsubPage 21 and subsubPage 2)
Are you aware of the contentbylabel macro?
You can use the Page Properties and Page Properties Report macros for that.
The Page Properties macro associates metadata values on a page with a label, and the report macro generates a table of selected metadata values pulled from all pages with that label.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Subpage 1 code :
---
List of subsubpage :
{report-table}
{local-reporter:page:descendents|source=Page}
{content-filter:type=page|labels=lb1}
{text-sort:data:Category|mode=natural|order=ascending}
{local-reporter}
{report-column:title=Test ID}
{report-info:content:title|source=@self|render=wiki|link=true}
{report-column}
{report-column:title=Covered Requirements}
{report-info:data:Covered requirements|render=wiki}
{report-column}
{report-column:title=Description}
{report-info:data:Description|render=wiki}
{report-column}
{report-column:title=Type}
{report-info:data:Type|render=wiki}
{report-column}
{report-column:title=Space Key}
{report-info:content:space > key}
{report-column}
{report-table}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Are you aware of the contentbylabel macro?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No, I am not aware with this macro, but now I am, thank you.
Subsidiary question : My subsubpage have metadata information, is it possible to display them with contentbylabel macro ? And "the must" are to display them into a report of course ;-) ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I would go with the reporting plugin for anything more involved that just a simple list of pages with a label.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.