Link to image variety from news item


(Lisa) #1

Hi,

I’m having trouble displaying an image variety within a news item. I’m using a code snippet like this (as created when adding an image using the WYSWIG image button and selecting the variety from the asset map):

… but the variety isn’t being recognised.

So instead of the src being converted to something like this:

http://website.com/__data/assets/image/0006/188249/varieties/Thumbnail.jpg

It’s coming out something like this:

http://website.com/folder/gallery1.jpg:v2$

The same code on a Standard Page works fine…

Any ideas?

Cheers,
Lisa

Matrix version: 5.3.4.2


(Bart Banda) #2

I can’t replicate that in 5.4, so might have been a bug that was fixed since that version.

What happens if you try and remove the last $ symbol?


(Lisa) #3

Thanks for taking a look. It’s the same without the last $, it’s still not parsed right and we get a broken image reference.
We get http://website.com/folder/gallery1.jpg:v2 instead of http://website.com/folder/gallery1.jpg:v2$

It looks fine in the WYSIWYG editor, and within the ‘preview’ panel on the Preview page, just not when the page is opened up and viewed.

Cheers,
Lisa


(Bart Banda) #4

That’s strange, can’t remember there being any bugs with that in that version.
You might have to send a ticket in to Squiz support to get further help and get someone to have a look at your system.

ANother thing to try is to just see if the global keyword format works:
%globals_asset_assetid:188249^as_asset:image_v_<image_variety_name>%