Closed bt-mo closed 4 years ago
Nah, it’s not only you, it‘s probably everybody 😊. The reason is that this was a function I added very early when developing Timmy, and I didn’t touch it for a long long time, because there wasn’t a use case I would use it on.
I added a fix in https://github.com/mindkomm/timmy/commit/ac9871a4dc01cce6590aa210d13e21f0ae6c5f06 together with tests, so that errors like these shoudln’t happen in the future for the get_timber_image_responsive_acf()
function.
This should now be fixed with the 0.14.5 release.
Hi,
if I use the function
get_timber_image_responsive_acf
in my twig files like this:<img class="" {{ get_timber_image_responsive_acf('image_file', 'blog-post-full') }}>
I get following notice:
The image does not show, the HTML looks like this:
<img class="" <br="">
When using this instead:
<img class="" {{ Image(fields.image_id)|get_timber_image_responsive('blog-post-full') }}>
it works perfectly.Is it just me or did anyone encounter this problem as well?