BoldMinded acquires Ansel, support ending for all add-ons. BoldMinded acquires Ansel, support ending for all add-ons. Read More →
Support has been discontinued. Issues remain available as an archive. Support has been discontinued. Issues remain available as an archive.
Having trouble getting manipulations="true" to work
#2 opened by Matt V
Description
Solution:
I've tested the changes, but I did make some changes that I want to make sure don't break anything else.
Download the attached patch files and replace:
ansel/Service/AnselImages/ImagesTag.php
and
ansel/Service/ParseInteralTags.php
I can't seem to get the new manipulations="true"
parameter to work properly.
Here's the basic code in my template:
{exp:channel:entries
channel="test"
}
<h2>{title}</h2>
{ansel_field manipulations="true"}
<p>Large URL: {img:large:url}</p>
<p>Medium URL: {img:medium:url}</p>
<p>Small URL: {img:small:url}</p>
<hr>
{/ansel_field}
{/exp:channel:entries}
But the template renders like this:
> ### Test Entry > Large URL: {img:large:url} > Medium URL: {img:medium:url} > Small URL: {img:small:url}
I tried in a different 3.5.3 install with similar results.
Replies
- TJ Draper
Replied 3/16/2017 9:49 PM, Edited 3/20/2017 8:16 AM
I can confirm. Not sure when that bug crept in. It was working at one point. I know because I remember testing it.
I'll look into why this is happening first thing tomorrow and see what I can figure out.
- TJ Draper
Replied 3/17/2017 11:18 AM, Edited 3/20/2017 8:16 AM
I've added a solution. I've tested the changes, but I did make some changes that I want to make sure don't break anything else.
- Matt V
Replied 3/17/2017 11:49 AM, Edited 3/20/2017 8:16 AM
Yup. That fixes the URL rendering on my test site.
I also took the time to upload the fix to my dev site, and my images are no longer broken. Hooray!
I'll keep my eye out for anything else that might have broken, but I'm optimistic.
- Matt V
Replied 3/17/2017 11:50 AM, Edited 3/20/2017 8:16 AM
Oh, and thanks as always for working quickly to fix Ansel and make it even better.