Comments Georg Weisz started the conversationAugust 13, 2018 at 1:04pmHi. We are using Unlimited Addons for a project and we think we discovered a bug. To reproduce:Create a new Addon with ItemsAdd an "image" variable to the Item HTMLAdd a thumbnails variable (eg. {{ item.image_thumb }}) to the Item HTMLSave/update the AddonUse the Addon on any page with WPBakery page builderAdd values for all variables and save All works fine, as you would expectGo and edit any value of your Addon in WPBakery, save againNow all {{ item.image_thumb }} variables lost their values and simply produce empty stringsThis is a rather annoying bug which might prevent us from using Unlimited Addons for this client project. Thank you in advance for checking this out.Cheers, GeorgGeorg Weisz repliedAugust 13, 2018 at 1:55pmFor everyone running into the same issue – this is our current (dirty) workaround:{{item.image|replace({'.png':'-200x200.png', '.jpg':'-200x200.jpg'})}}We discovered Unlimited Addons uses Twig, so you can use pretty much all of Twig’s features – in this case the replace-filter: https://twig.symfony.com/doc/2.x/filters/replace.html Max replied privately Georg Weisz replied privately Max replied privately Max replied privately Georg Weisz replied privately Sign in to reply ...
Hi. We are using Unlimited Addons for a project and we think we discovered a bug. To reproduce:
This is a rather annoying bug which might prevent us from using Unlimited Addons for this client project. Thank you in advance for checking this out.
Cheers, Georg
For everyone running into the same issue – this is our current (dirty) workaround:
{{item.image|replace({'.png':'-200x200.png', '.jpg':'-200x200.jpg'})}}
We discovered Unlimited Addons uses Twig, so you can use pretty much all of Twig’s features – in this case the replace-filter: https://twig.symfony.com/doc/2.x/filters/replace.html