Metadata - Can't access key AND value

Matrix Version: 5.3.3.0

I’ve got a Selection Metadata field, and I need to access the ‘value’ and the ‘key’ seperately. Unfortunately, neither the %asset_metadata_name_key% or %asset_metadata_name_value% keywords produce any values…thought the usual %asset_metadata_name% prints whatever is set to appear on the front end.
Anyone seen this?

Those should definitely work in that version.
But where are you trying to print those keywords? Just on a Standard Page or in a PL somewhere?

Hi Bart
I’m using them in an Upcoming Events listing (Single format)…the metadata in question is attached to Single Calendar Events.
thanks
mark

Ah, I have a feeling those keywords might not work on the upcoming events listings type format, I remember there were a few bugs around that asset back in the day, so most likely they are there in your version.

You could alternatively try to print the format within a PL outside of the upcoming events listing and then just in the type formats of the events listing using something like %asset_contents_paint_layout_id_<paint_layout_id>%.

Ideally, I’d use a Calendar Search Page asset instead as the upcoming events listing as the Upcoming Events Listing asset will be deprecated in future versions of Matrix.

Thanks, Bart; excellent info. I’ll give the PL option a go, I think…

1 Like