You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

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 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 espcially useful for document types that are closely related to the parent document, 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.
  • No labels