Search
Other Articles Anywhere questions
Forum

Using Article Anywhere in a module for Acymailing

Stephan Herby's Avatar Stephan Herby
Hi Peter,
I have a case here where I need your advice...
I'm trying to use Articles Anywhere in a module to get the last article of a categorie in a module.
So the module is imported in a Newsletter.
I want to get an image, but when the plugin AA grab the image information, it give this :
<img 
src="https://mywebsite.com/images/econa-article-images/2668/intro/resized/made-in-53-couv_115x115.jpg" 
srcset="images/econa-article-images/2668/intro/resized/made-in-53-couv_230x230.jpg 1.5x, images/econa-article-images/2668/intro/resized/made-in-53-couv_115x115.jpg 1x" 
alt="Made in 53 couv" 
title="Made in 53 couv" 
width="115" 
height="115" 
style="-ms-text-size-adjust: 100%; outline: 0; text-decoration: none; width: auto; max-width: 100%; clear: both; display: block; -ms-interpolation-mode: bicubic; border: none; padding: 0;">
As you see, the image URL and the srcset URL are not the same and give me a error on image. I'm pretty sure it come from the Acymailing tool...
share.cleanshot.com/9WTSGlqP
When I just erase the srcset attribute, the image is shown normaly :
share.cleanshot.com/WG5sVJ2x
I would like to use the "[image-intro width="115"]" as i need the image to be resized, but I do not want to use the srcset attribute. Is the re any way to do that (even a trick) ?
Thanks in advance.
Peter van Westen's Avatar Peter van Westen ADMIN
You can switch off the "Use Retina Images" option in the Articles Anywhere system plugin settings.

But the real issue here is that Acymailing is only adding thew domain to the image paths in the src attribute.
It should also handle the images in the srcset attribute.
Please post a rating at the Joomla! Extensions Directory
Stephan Herby's Avatar Stephan Herby
Hi Peter, i was sure it was coming from the Acymailing tool...
Thanks for the tips.

Just to validate, there's no way to add a parameter in the tag so the srcset is not used in THAT image ?
I'm talking about something like "srcset="false" (like for the "resize="true"" for example - Actually i tried it but did not work 🙂 )
I'm asking because I would like to use the srcset in the pages of the website where I also use regularlab AA.
Peter van Westen's Avatar Peter van Westen ADMIN
Try:
resize-use-retina="false"

Other resize attributes that can be used:
resize-folder
resize-quality
resize-max-age
resize-retina-pixel-density
Please post a rating at the Joomla! Extensions Directory
Stephan Herby's Avatar Stephan Herby
Hi, thanks for suggestion...
Unfortunately the 'resize-use-retina="false"' attribute did not work.
I tried then :
<img src="[image-intro:url  width='115']" alt="[title]" title="[title]" width="115">
And it worked ! 🙂
So I can let the "Use Retina Images" option ON (and this is great) and the picture is now shown in the Newsletter.
I always thought this component has endless capabilities, it’s just amazing!
Peter van Westen's Avatar Peter van Westen ADMIN
The resize attributes were indeed not working. Should be fixed in the latest development version from:
regularlabs.com/development-releases
Please post a rating at the Joomla! Extensions Directory
Stephan Herby's Avatar Stephan Herby
Hi Peter, just to let you know that I have tried your latest version "v16.0.6-dev2917787" an dit orked :
I pput that code in my Newsletter :
<td width="115">[image-intro width="115" resize-use-retina="false"]</td>
And i get that code on HTML in my Newsletter :
<img src="https://mywebsite.com/images/econa-article-images/2668/intro/resized/made-in-53-couv_115x115.jpg" alt="Made in 53 couv" title="Made in 53 couv" width="115" height="115" style="-ms-text-size-adjust: 100%; outline: 0; text-decoration: none; width: auto; max-width: 100%; clear: both; display: block; -ms-interpolation-mode: bicubic; border: none; padding: 0;">
WHich is exactlyt what I needed 🙂
Thanks a lot!
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription