Adding a keyword as a default value to a Metadata field


(Nick Papadatos) #1

Matrix Version: 5.3.4.2

Hi talented squiz folk

I have a metadata schema with one of the fields named “image”. Within that field I have set the default value as “%globals_asset_thumbnail_url%” but when I look at the metadata of the data record I get the following:

<meta name="image" content="%globals_asset_thumbnail_url%" />

Even though the asset has a thumbnail - I was expecting the url of the thumbnail, have I missed something?

Cheers
Nick


(John gill) #2

Where are you looking at the metadata - View source in the front end, or on the Metadata screen in _admin?

Within _admin, I don’t think the %globals_asset scope exists, so %asset_thumbnail_url% would work but %globals_asset_thumbnail_url% would not.

In the frontend I’d expect them to both work, but I’d probably use %asset_thumbnail_url% for simplicity. I can’t think of a reason to use %globals_ for this.


(Nick Papadatos) #3

I knew it was simple so yes removing the globals worked, thanks