Start page / Template development / Rules / Form properties <PROPERTY/> / Property UID

UID property

Determining the reference name (UID) of the current element

Each element in FirstSpirit has (with a few exceptions, e.g. sections) a reference name, which must be unique per store. This reference name is also called “UID” (Unique Identifier).
This can be determined using a rule.

The expression <PROPERTY source='#global' name='UID'/> 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.

For sections, the display name is returned.


<RULE when="ONLOCK">
<PROPERTY name="UID" source="#global"/>
<PROPERTY name="VALUE" source="UID"/>

© 2005 - 2024 Crownpeak Technology GmbH | All rights reserved. | FirstSpirit 2024.6 | Data privacy