projectdoc Toolbox

Controls the generation of the document title by adding the parent document's title in any case.

Tags
Identifier
adjust-title-on-any-parent
Type
boolean
Default Value
false
Since
2.5

This property allows template authors to control the title of a document dependent on the expected parent's doctype defined by the Parent Document Property.

Per default the title of a new document will only be adjusted by the parent document's title if the parent page is a semantic parent document. The parent page is a parent document if the Parent Document Property is not empty. This property allows to override this and accept any document to be the semantic parent. This is especially useful for document types that are not closely related to a specific the parent document type, such as Section or Step.

Example of Usage

Add the following hidden input element to the template wizard's Soy.

<input id="adjust-title-on-any-parent"
       type="hidden"
       name="adjust-title-on-any-parent"
       value="true">

Independent on the Parent Doctype value of the Parent Property Macro the title will have the title of the parent document appended.

Resources

Parent Property Macro
Renders the property of the parent document, if it has the same doctype.
adjust-title-on-parent
Controls the generation of the document title by adding the parent document's title if the parent matches the doctypes listed by the Parent property.