Globals Image Tag keyword?


(Bnlow) #1

Was just wondering, is there was a globals image tag keyword?
For example: %globals_image_tag:id%



If not, I'll post a feature request.



Thanks.


(Greg Sherwood) #2

[quote]Was just wondering, is there was a globals image tag keyword?
For example: %globals_image_tag:id%[/quote]



If you just want to print an image, you can write HTML like <img src="./?a=xxx" …



But if you want Matrix to print the tag with ALT text etc, you should give this a go: %globals_asset_image_tag:xxx%


(Bnlow) #3

Hmm. . . tried that, but no success. Also tried variations such as:
%globals_assets_image_tag:xxx%
%global_assets_image_tag:xxx%
%global_asset_image_tag:xxx%

Having Matrix print the tag would be a huge convenience.

(Greg Sherwood) #4

Sorry, I got that keyword wrong. It should have been: %globals_asset_image_tag:xxx%


(Bnlow) #5

:blink: . . . looks the same and doesn't seem to be working either.


(Greg Sherwood) #6

The 's' on globals is important and there should be no 's' on asset. If that doesn't work, I'm out of ideas.


(Avi Miller) #7

It doesn't seem to work on v3.16.5, I'm afraid. %globals_asset_name:222% works on my test system, but %globals_asset_image_tag:222% doesn't.

(Dcook) #8

I'm surprised I only just discovered I couldn't do this. Instead I've re-created the image tag with globals_asset_attribute keywords: %globals_asset_attribute_alt:492%


(Dcook) #9

Just learnt that you can also use asset_contents_raw, like so:

%globals_asset_contents_raw:492%

Thanks Bart!