Metadata
Last Updated: 02 Mar 2020
Along with the standard list of keyword replacements you can also use the metadata keyword replacement to display a metadata field value for an asset.
Keyword Replacement | Information Shown |
---|---|
%asset_metadata_<fieldname>% | Where The |
%asset_metadata_<fieldname>_key% | The Key value of a metadata Select field. |
%asset_metadata_<fieldname>_value% | The Value value of a metadata Select field. |
%metadata_field_<fieldname>% |
Use this to reference the value of another Metadata Field within the current field. For example, if you want to use the value of the description
field as the default value in another field, the following keyword replacement would be used:
%metadata_field_description%
. If the metadata field is a Select field, you can also display the separate Key and Value values of it using: %metadata_field_<fieldname>_key% Keyword modifiers can be used on Metadata Field keywords to modify returned field values, including cases where returned field values contain keyword replacements. For example, if we have a 'date' metadata field with the value '%asset_created%', you can use the date_format keyword modifier to configure the format of the returned date format: %metadata_field_date^date_format:Y-m-d% |
%asset_frontend_metadata% | Displays the frontend metadata as it would be used the HTML source code The metadata tags and values, defined in the asset's applied Metadata Schema, will be added to the asset's HTML source view. Please note that the Show On Frontend option must be enabled for a metadata field and its value to be displayed within the HTML source code. For more information, refer to the Metadata Schemas manual. |