projectdoc Toolbox

Requests the generation of an XML fragment to refer to the parent as a delegate document.

Identifier
request-projectdoc.xml.delegate-document.parent
Type
boolean
Since
1.10

Description

If template authors want to reference the parent page as the Delegate Document (a property of the Document Properties Marker Macro) of a page, they need to add XML code to the generated page. By setting request-projectdoc.xml.delegate-document.parent to true, projectdoc will create the following XML fragment.

<ac:link><ri:page ri:content-title="{parentPageTitle}" /></ac:link>

The {parentPageTitle} is replaced with the title of the parent page.

The fragment is stored to the blueprint context and can be accessed by the key projectdoc.xml.delegate-document.parent.

The fragment can be accessed like this:

<ac:structured-macro ac:name="projectdoc-properties-marker">
  <ac:parameter ac:name="override">false</ac:parameter>
  <ac:parameter ac:name="delegate-document"><at:var at:name="projectdoc.xml.delegate-document.parent" at:rawxhtml="true"/></ac:parameter>
  <ac:rich-text-body>
  ...
  </ac:rich-text-body>
</ac:structured-macro>