contao/newsletter-bundle

Problem sending Newsletter with variables

Closed this issue · 8 comments

Hi,

actually i found a problem that i cannot send a Newsletter anymore which contain variables in combination with if query.

{if gender=="male"} Lieber ##firstname##, {elseif gender=="female"} Liebe ##firstname##, {else} Hallo, {endi}

Unexpected character "#" around position 7 for expression gender=="male".

I´m using the latest version:
Contao: 4.12.1

Gerade sehe ich, dass es bei dir vielleicht an etwas Anderem liegen könnte: {endi}

Angemeckert werden die Zeichen == diese werden umgewandelt in ? das löst dann den Fehler aus.

Wie hast du das festgestellt und warum funktioniert es dann dennoch und wie wäre eine alternative Syntax?

Dieses Repo ist ein "Read-Only-Split" von https://github.com/contao/contao. Falls das Problem noch besteht, bitte öffne dort ein neues Issue: https://github.com/contao/contao/issues/new/choose