- Created by Robert Reiner, last modified on 01. Oct 2019
You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 13 Next »
projectdoc Toolbox
Renders a template with property references.
- Audience
- Categories
- Tags
- Type
This macro transcludes the values of properties of another document. The properties of the values to fetch are specified in a template.
Properties
Document
The document the properties are part of.
If not specified, the current document is used. This allows to render the value of a property of the same document at several places of this document, without duplicating the value.
Within the Document Properties Marker Macro
- you must not reference a property of the same document before it is defined. If you use this macro as the value of a document property, the macro must only reference properties that haven been specified prior.
- do not reference properties of pages with different page access restrictions!
Template
The template to add property references.
The placeholder ${...}
references a property value. The placeholder $[...]
references a property value and also generates a link to the referenced document.
Since version 1.9.0 the template defaults to
$[Name] - ${Short Description}
Add Link
If checked, a link to the referenced document is rendered for the complete template text.
Lowercase Properties
List of property names whose values first letter should be lowercased.
Usually used for short descriptions.
Calculate Expression
The content is an expression to be evaluated.
This property is available since version 1.7.0.
Use the 81035653 to define the output format.
If the document has the properties X with a value of 23
and Y with a value of 42
.
If you want to calculate the average of these two values, use this pattern:
(${X} + ${Y}) / 2
The result: 32.5
Format Pattern
A format pattern to render an evaluated expression.
Since 1.7.0
This property is available since version 1.7.0.
Use the following symbols to define the pattern:
Symbol | Description |
---|---|
. | Decimal Separator |
0 | Digit |
# | Optional Digit |
, | Grouping Separator |
¤ | Currency Sign |
% | Multiply by 100 and show as percentage |
‰ | Multiply by 1000 and show as per mille value |
' | Quote strings (to escape symbols) |
Blank Placeholders
Controls the rendering of unresolved placeholders. Since unresolved placeholders may be further processed by transclusion macros (e.g. the Transclusion Macro), per default unresolved placeholders are rendered.
If this flag is checked, unresolved placeholders will not be rendered (blanked out).
Since 2.0
This property is available since version 2.0.
Default Value
A default value to render, if the document has no value for the template.
Prepend Newline
If checked, signals that a newline is to be rendered before the property template.
Identifier
Unique identifier of the macro for the rendered context.
Features may supply default configurations dependent on the value of this property.
Since 4.0
This parameter is available since version 4.0 of the projectdoc Toolbox.
Identifier Classes
Identifiers to address this macro as part a group for the rendered context.
Features may supply default configurations dependent on the value of this property.
Since 4.0
This parameter is available since version 4.0 of the projectdoc Toolbox.
Autocomplete Constraints
Provide a Where clause to select on documents for the autocomplete feature of this macro.
This parameter is only to control the autocomplete feature of this macro. If empty, no constraints are put on the list documents presented.
Since 4.0
This parameter is available since version 4.0 of the projectdoc Toolbox.
This property is only used in the context of the Autocomplete function. It is only enforced on Autocomplete in the browser.
Changes to the parameter value will only take effect on the next Autocomplete selections. But there is also no guarantee that the list of selected documents will not be filtered later. The not enforced constraint is that the selected documents should match the constraints.content
Related macros
- Display Document Properties Macro
- Renders a template with property references.
- Display Document Property As Image Macro
- Renders the value of a document property as an image. The property value is required to an URL that points to an image.
- Display Document Property As Link Macro
- Renders the value of a document property as a link with an alternative label.
- Display Document Property As List Macro
- Renders the list value of a document property.
- Display Document Property Macro
- Renders the value of a property of a document.
- Display Document Property Ref Concat Macro
- 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.
- Display Document Property Ref Macro
- Displays a document property from a referenced document.
- Display Space Attribute Macro
- Renders a space attribute value.
- Display Space Property Macro
- Renders a space property value.
- Tour Macro
- Renders a predefined list of documents in a table.
Resources
- Linking to Glossary Terms
- Show how to use the Name List Macro to render links to glossary terms.
- No labels