Passing asset id to global_asset_contents_raw [solved]


(Andrew) #1

Matrix Version: 5.1.9.0

Hi,

Is it possible to pass an asset id from a metadata field to the %global_asset_contents_raw:asset_id% keyword?

I have tried this but have had no luck - %globals_asset_contents_raw:asset_metadata_header_type_key%. The key definitely has a value and can be printed on its own.

Thanks!


(Peter McLeod) #2

Hi

Could you use the ‘as_asset’ modifier instead?

%asset_metadata_header_type_key^as_asset:asset_contents_raw%

Thanks
Peter


(Andrew) #3

Your example worked perfectly!

I tried the modifier previously but my understanding of the syntax is obviously not right.

Thank you!