Keyword to get thumbnail image metadata not working?


(Charlotte Westney) #1

Hello Matrixers,

Matrix v 5.3.4.0

I’ve got a page nested into my design file, to grab the current page’s thumbnail and show it as a header image.
(Its actually in a show/if area, so if there is a thumbnail it prints this design area, if there isn’t then it prints another design area that has an asset list in to list child images).

On my nested content page these keywords work fine:
%globals_asset_thumbnail_assetid%
%globals_asset_thumbnail_alt%
%globals_asset_thumbnail_caption%

But I also need to get to a couple of things stored as metadata on those images.

But this keyword doesn’t work:
%globals_asset_thumbnail^as_asset:asset_metadata_copyright%

In fact it seems that the ^as_asset modifier isn’t working at all, I can’t get it to output the asset name or any other attribute with that modifier either.

Why doesn’t that work? And how else could I get to that metadata?

Thanks!
Charlie.


(Peter McLeod) #2

Hi
Maybe try:
%globals_asset_thumbnail_assetid^as_asset:asset_metadata_copyright%
Think it should work but haven’t tested it.
Thanks
Peter


(Charlotte Westney) #3

Ahhh yes, as soon as I saw what you’d written that makes total sense as to why mine didn’t work and why yours does.

Thank you Peter!

C ;o)