Start page / Template development / Template syntax / System objects / #meta

#metaAvailable from FirstSpirit Version 5.2R18

Important This object is valid only within snippet definitions.

The #meta system object can be used within the snippet definitions to output the content of metadata that has been defined directly on the corresponding element.

The individual input components are output from the metadata via

#meta.IDENTIFIER

Example:

if(isSet(#meta) && #meta.md_text != null,#meta.md_text)

delivers the content of the md_text input component from the metadata belonging to the element for which the snippet is valid.

If no metadata has been defined on the element or there is no metadata available for the element type (e.g., datasets), then null is returned.

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