Cloning of Twig Template not possible

Your software
My Mautic version is: 4.4.10
My PHP version is: 7.4.33
My Database type and version is: 10.5.18-MariaDB-0+deb11u1

Your problem
My problem is: I can’t clone twig templates. Choosing a template and clone, nothing happens.

These errors are showing in the log: none

Steps I have tried to fix the problem: no steps

Hi,
is that Advanced Twig templates or Twig Templates by mtcextendee ?

Hello Joey

Many thanks for answering my question.
It is mtcexeedee. Two years ago, as far as I know there was no alternative, so I bought a license.

Is the Advanced Twig Templates now a real alternative? Then I’m happy to switch to that one.

Kind regards

Christian

It’s different plugin, they both have 100% different purpose.

Twig Templates Plugin will help you with creating tokens you can use, Advanced Twig templates will let you use Twig code in DWC and emails.

Thanks Joey

I don’t get the second idea on how to benefit from Twig Code in emails, right now. I have to search the web for some examples. Or do you have a hint?

Twig Template Plugin I am using already.

Is there a way of coping with the German addressing different clients e.g. Du/Sie with Twig templates as well?
With Twig Template Plugin, I have to write the whole text twice, one time with Du and a second time with Sie, in order to get the wished result.

Hey,

Here is my German Begrüssung code:

{% if contact.title %}

  {% if contact.title == "Frau" %}
	{% if contact.du_sie == "Du" %}
	<p>Liebe {{contact.title}} {{contact.lastname}}</p>{% endif %}
        {% if contact.du_sie == "Sie" %}
	<p>Sehr geehrte {{contact.title}} {{contact.lastname}}</p>{% endif %}
  {% endif %}
  
  {% if contact.title == "Herr" %}
        {% if contact.du_sie == "Du" %}
        <p>Lieber {{contact.title}} {{contact.lastname}}</p>{% endif %}
	{% if contact.du_sie == "Sie" %}
        <p>Sehr geehrter {{contact.title}} {{contact.lastname}}</p>{% endif %}
  {% endif %}

{% endif %} 

in du_sie I’m saving if it’s the pollite form, in title I’m saving Herr / Frau.

Many thanks, I know your video very well. And I’m using similar code in Twig Template Plugin.
More complicated it gets when in the email body there are sentences like:
“Damit kannst Du schöne Templates bauen.”
Then we need the distinction again:
“Damit können Sie schöne Templates bauen.”

And the longer the email is, the more double content I have to insert.

Here it would be great to have constants for “Du, Sie, Ihnen, Ihres, meins, deins, etc.”
Then I could fill the constants based on the condition.

Challenge accepted. You will hear from me soon.

Wow, You are wonderful!
Many thanks!

We still have our coffee appointment open. :slight_smile: