TEMPLATE property
Determining the template of the current element
For elements that are based on a template in FirstSpirit (e.g. pages, sections, datasets), the template can be determined using a rule. The reference name of the template is returned (UID).
The expression <PROPERTY source='#global' name='TEMPLATE'/> can be used in the value determination of the rule definition (or for the definition of a precondition). Since this is a generally applicable property, the object #global has to be assigned to the source attribute.
A page returns for example the information of the page (even if the rule is executed e.g. in a paragraph within a FS_CATALOG input component).
In metadata, information of the element on which the metadata was defined is returned.
Example
<RULES>
<RULE when="ONLOCK">
<WITH>
<PROPERTY name="TEMPLATE" source="#global"/>
</WITH>
<DO>
<PROPERTY name="VALUE" source="Template/>
</DO>
</RULE>
</RULES>