Includes the wiki content of all children of a page, headed by the page title and a link to edit the page.
Description
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.
Using the report-info macro, we'll list the title in a heading, with the page title as the heading value. We'll also add an 'Edit' link, shown only to users who can edit this space (substitute your own space key for 'SPACEKEY'):
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:
This recipe is great and has gotten me VERY close to what I want. Thank you.
One follow-up question: is there a way to sort the page output based off of the MANUAL sort order that was released with Confluence 2.8? To be clear, I am referring to the sort order established when one flips to tree view of pages and drag-and-drop pages – the manual sort order works just fine with pagetree and children macros but neither of those can get me full content of child pages in the output.
Support for 2.8's manual sort order has not yet been added. Looking into it a little, this will probably be supported by adding a 'sorted children' key to Page objects, so you can get the user-sorted list for a single page. I've created a feature request with the details - feel free to watch/comment/vote.
This recipe is great and has gotten me VERY close to what I want. Thank you.
One follow-up question: is there a way to sort the page output based off of the MANUAL sort order that was released with Confluence 2.8? To be clear, I am referring to the sort order established when one flips to tree view of pages and drag-and-drop pages – the manual sort order works just fine with pagetree and children macros but neither of those can get me full content of child pages in the output.
Thanks,
Bill
Hi Bill,
Support for 2.8's manual sort order has not yet been added. Looking into it a little, this will probably be supported by adding a 'sorted children' key to Page objects, so you can get the user-sorted list for a single page. I've created a feature request with the details - feel free to watch/comment/vote.