# Cloning of Twig Template not possible

**URL:** <https://forum.mautic.org/t/cloning-of-twig-template-not-possible/29389>\
**Category:** Product Support\
**Tags:** mautic-4\
**Created:** [September 21, 2023, 7:58pm UTC](https://forum.mautic.org/t/cloning-of-twig-template-not-possible/29389 "2023-09-21T19:58:37Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![taxi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/taxi/32/522_2.png) [@taxi](https://forum.mautic.org/u/taxi)\
**Post date:** [September 21, 2023, 7:58pm UTC](https://forum.mautic.org/t/cloning-of-twig-template-not-possible/29389/1 "2023-09-21T19:58:37Z")

</div>

**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

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [September 27, 2023, 6:43am UTC](https://forum.mautic.org/t/cloning-of-twig-template-not-possible/29389/2 "2023-09-27T06:43:50Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![taxi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/taxi/32/522_2.png) [@taxi](https://forum.mautic.org/u/taxi)\
**Post date:** [September 27, 2023, 10:42am UTC](https://forum.mautic.org/t/cloning-of-twig-template-not-possible/29389/3 "2023-09-27T10:42:35Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [September 29, 2023, 8:27am UTC](https://forum.mautic.org/t/cloning-of-twig-template-not-possible/29389/4 "2023-09-29T08:27:14Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![taxi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/taxi/32/522_2.png) [@taxi](https://forum.mautic.org/u/taxi)\
**Post date:** [September 29, 2023, 9:32am UTC](https://forum.mautic.org/t/cloning-of-twig-template-not-possible/29389/5 "2023-09-29T09:32:39Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [September 29, 2023, 10:09am UTC](https://forum.mautic.org/t/cloning-of-twig-template-not-possible/29389/6 "2023-09-29T10:09:55Z")

</div>

Hey,

> **[Mautic and the Beauty of the Deutsche Sprache – Joey Keller](https://joeykeller.com/mautic-and-the-beauty-of-the-deutsche-sprache/)**

Here is my German Begrüssung code:

```auto
{% 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.

---

<div class="post-metadata">

**Author:** ![taxi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/taxi/32/522_2.png) [@taxi](https://forum.mautic.org/u/taxi)\
**Post date:** [September 29, 2023, 11:55am UTC](https://forum.mautic.org/t/cloning-of-twig-template-not-possible/29389/7 "2023-09-29T11:55:39Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [September 30, 2023, 8:18am UTC](https://forum.mautic.org/t/cloning-of-twig-template-not-possible/29389/8 "2023-09-30T08:18:15Z")

</div>

Challenge accepted. You will hear from me soon.

---

<div class="post-metadata">

**Author:** ![taxi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/taxi/32/522_2.png) [@taxi](https://forum.mautic.org/u/taxi)\
**Post date:** [September 30, 2023, 8:47am UTC](https://forum.mautic.org/t/cloning-of-twig-template-not-possible/29389/9 "2023-09-30T08:47:34Z")

</div>

Wow, You are wonderful!  
Many thanks!

We still have our coffee appointment open. 🙂
