Includes the wiki content of all children of a page, headed by the page title and a link to edit the page.
This recipe is handy if you want to have a parent page present an aggregated view of all its children, displayed in full. This recipe includes an 'Edit' link for each section, which will automatically take the page editor to edit the listed page.
Linking Plugin, Reporting Plugin, Visibility Plugin
content-reporter, report-block, report-body, text-sort
{report-block}
{content-reporter:scope=@self > children}
{text-sort:content:title}
{content-reporter}
{report-body}
h2. {report-info:content:title|link=true} {show-to:space=@self:edit}_({link-to:page edit}Edit{link-to})_{show-to}
{report-info:content:body|render=wiki}
{report-body}
{report-block}
{show-to:space=@self:edit}
{add-page:parent=@self}(+) Add a new section{add-page}
{show-to}
{report-block}
{content-reporter:scope=@self > children}
{text-sort:content:title}
{content-reporter}
{report-body}
h2. {report-info:content:title|link=true} {show-to:space=@self:edit}_({link-to:page edit}Edit{link-to})_{show-to}
{report-info:content:body|render=wiki}
{report-body}
{report-block}
{show-to:space=@self:edit}
{add-page:parent=@self}(+) Add a new section{add-page}
{show-to}
Another serving suggestion is to mix in the Scaffolding Plugin (particularly Scaffolding 2.2) to allow the pages to be sorted by a custom data field.
For example, perhaps you would like to be able to set an arbitrary number which the children are sorted by. This can be done using the {set-data}\ macro on each child:
{set-data:Order|type=number}1{set-data}
Then, in your content-reporter block, make it the following:
{content-reporter:scope=@self > children}
{number-sort:data:Order}
{content-reporter}
This uses the 'data:' prefix, as defined by the Scaffold Data Supplier.
|
Connect JIRA and SharePoint |
Atlassian Professional Services |
Atlassian Training |
Discussions