Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Scaffolding Cloud: Converted Scaffolding Server macros to Scaffolding Cloud macros.
Live template
templateTypetemplate
templateOption{"label":"Use Case livetemplate cloud ready","value":"979936585","templateType":"template"}
templateTypeOption{"label":"Confluence template/blueprint","value":"template"}
templateId979936585
excerptScenario 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 allow the user to edit the listed page. It combines the functionality offered by  unnamed link ,  unnamed link and  unnamed link add-ons. The steps will guide you on how to include the content of all children of a page, headed by the page title and a link to edit the page. Result Recipe Apps Linking for Confluence, Reporting for Confluence, Visibility for Confluence Level Advanced Estimated time 30 minutes Macros Content Reporter, Report Block, Report Body, Report Info, Text Sort Suppliers Content Supplier Storage format You can copy and paste this code into the Confluence Source Editor : INLINE @self > children content:title true content:title edit INLINE ( Edit page edit ) richtext INLINE content:body @self:edit INLINE @self (+) Add a new section Macro structure You can recreate the example in the editor view: Steps The format of the report will be in the form of  Report Block . Content Reporter  is used to report on the current page children by setting scope to " @self > children ". Pages pulled from  Content Reporter  are sorted by content title via  Text Sort , setting supplier key to " content:title " . Report Body  is used as a container for displaying results. Injected is set to true so that we can inject values within the field of  Link to Location   macro (see step 7). Report Info  displays title of each page returned from  Content Reporter , setting supplier key to " content:title " . The  Show If  macro will only display the contained contents (see step 7) if this current space can be edited by the current user, by setting the Space Permissions parameter to " @self:edit " or " edit ". This macro is from the  Visibility  add-on. Link to Location  macro creates a link to special Confluence locations. In this case, it links to the edit page of each child page from  Content Reporter . Location parameter is set to " page edit ". Content parameter is set to " %content:title% ". The " % " sign indicates that the enclosed text are injected - the text within will be replaced by the value of supplier key " content:title ". Link Text is set to " Edit ". This macro is from the  Linking  add-on. The  Report Info  macro displays the content body, by setting the supplier key to " content:body ". Render parameter is set to " RichText ". Same as Step 6. The  Add Page  page creates a link that adds a new page. The Parent parameter of this created page is the current page, i.e. " @self ". The Link Text parameter is set to " :plus:  Add a new section ". This macro is from the  Linking  add-on. Line-by-Line Explanation N/A
fieldGroupKeys{"6aqnjkbqoz":["net.customware.confluence.plugin.scaffolding__6aqnjkbqoz__data_0_0azwabb3nqnit1rj9t2z"]}