Render the property value of an ancestor of this document, for the first ancestor that matches the specified document type.
- Audience
- Tags
- Link
- Ancestor
- Autocomplete
- Type
- Since
- 1.16
The Ancestor Property Macro allows template authors to reference a document property of an ancestor document. If such a document is moved to another document tree, the referenced parent property is automatically updated.
This macro is especially useful to add the name of an ancestor's document to the properties table to be printed.
Properties
The macro provides the following properties.
Ancestor Doctype
The name of the type of the ancestor document to be actually considered a ancestor. The property of the first matching ancestor is rendered.
An ancestor is a parent or one of the parents of that parent.
If the ancestor doctype is not specified, the ancestor is required to have the same type as the referencing document.
Related macros
Name | Short Description | Tags |
---|---|---|
Renders a template with property references. |
||
Renders the value of a document property as an image. The property value is required to an URL that points to an image. |
||
Renders the value of a document property as a link with an alternative label. |
||
Renders the list value of a document property. |
||
Renders the value of a property of a document. |
||
Displays a single property of a document that is referred by a property of another document and concatenates it with the value of a local property. |
||
Displays a document property from a referenced document. |
||
Renders a space attribute value. |
||
Renders a space property value. |
||
Lists references to projectdoc documents. The rendering will add a link to a document, if there is a document with the given name. |
||
Renders the property of the parent document, if it has the same doctype. |
|