Metadata

Last Updated: 28 Mar 2018

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 is the name of the field in the Metadata Schema. For example, if the name of the field is "Title", then the keyword replacement is: %asset_metadata_Title% .

The <fieldname> is case sensitive, so if the field starts with a lower case letter in the Metadata Schema, then the <fieldname> should start with a lower case letter. In other words, if the name of the field is "title", then the keyword replacement would be: %asset_metadata_title% .

%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: %metdata_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%
%metadata_field_<fieldname>_value%

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.


Previous Chapter Next Chapter

The Latest

Let Us Know What You Think

Let us know if you spot any errors or if you have any ideas on how we can improve the Matrix Community Website.

Contact Squiz for Demo

Let us show you the true power of Squiz Matrix by giving you a personalised demonstration.