No Twig anymore?

MauriceW

Member
I upgraded my MW version to 2.3.7 and now my dynamic content (Twig) doesn't work anymore.

I just get the full syntax in the (test) emails, instead of the dynamic result text.

Has Twig been removed? Is there another way to display dynamic content, based on a custom field value?
 
Okay, that's a good thing. So now I need to troubleshoot, why the twig syntax is not processed anymore after the upgrade. The code appears just in the email body. For example this is a screenshot from the test email I received:
 

Attachments

  • Screenshot_1.jpg
    Screenshot_1.jpg
    57.3 KB · Views: 3
Is there a logging? Or a debug mode? So I can see if there are any twig errors while processing and sending the email?
 
Last edited:
I got it. It appears that the syntax {% if BIGGEST_PROBLEM contains 'eat healthy' %} does not work and causes the whole email not being processed with twig. After searching the twig syntax, the use of 'contains' does not exist. So the problem was on my side by using incorrect syntax. To find a substring, I need to use another syntax. Consider this issue solved :)
 
Back
Top