# How to create own token field?

**URL:** <https://forum.mautic.org/t/how-to-create-own-token-field/19302>\
**Category:** Product Support\
**Created:** [May 2, 2021, 9:56am UTC](https://forum.mautic.org/t/how-to-create-own-token-field/19302 "2021-05-02T09:56:41Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ekatronik](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ekatronik/32/120_2.png) [@ekatronik](https://forum.mautic.org/u/ekatronik)\
**Post date:** [May 2, 2021, 9:56am UTC](https://forum.mautic.org/t/how-to-create-own-token-field/19302/1 "2021-05-02T09:56:41Z")

</div>

Hi all

I have several segment on my mautic,  
and each segment, i want put different footer text.  
So to save time, maybe if i can create a custom token field, that will awesome…  
if can, I will put, for example {myfooter1} for first segment, and {myfooter2} for second one.

how can achieve that…?

thanks

---

<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:** [May 3, 2021, 9:59am UTC](https://forum.mautic.org/t/how-to-create-own-token-field/19302/2 "2021-05-03T09:59:32Z")

</div>

You can use dynamic content for this.  
Choose the dynamic content from the email builder:  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/e/e3f1853439bc65e31868c962f1233fc4aeda0f30.png)

Create a new dynamic content and add the right custom field as a filter:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/5/5bea0fbb342e03962fdc2e6e3ff9e03823c5cd37.png)

---

<div class="post-metadata">

**Author:** ![ekatronik](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ekatronik/32/120_2.png) [@ekatronik](https://forum.mautic.org/u/ekatronik)\
**Post date:** [May 3, 2021, 10:39am UTC](https://forum.mautic.org/t/how-to-create-own-token-field/19302/3 "2021-05-03T10:39:30Z")

</div>

Thanks @joeyk  
that is new information about Dynamic content for me… that awesome.

but not exactly that what I mean.

I want to create new token syntax, such as like this

![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/a/a91ed65c9df3ad6ebce375316ae11ae172a91d2a.png)

but we can put custom token.

if we put {footer-1} at email content, that will show the custom text.

Currently, what I did is, I saved several footer text at notepad on my laptop, and I chose one a footer text, and copy paste to relevant email footer that I want to send.

Let say if I have 5 different footer, and I will send email to different segment, I have to copy paste different footer text each email.

Any suggest to do that in mautic?

I used [sendy.co](http://sendy.co) before… and there are have feature to create a custom email template on dashboard. and we can chose and edit that email template when we want to compose and email.

On mautic, sometime I clone an email, so I have not to rewrite the footer…

but, I am curious about custom token 😃

---

<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:** [May 3, 2021, 11:36am UTC](https://forum.mautic.org/t/how-to-create-own-token-field/19302/4 "2021-05-03T11:36:02Z")

</div>

Let’s say you have 5 segments.  
You add 5 dynamic content as footer to each email, and the one will show which is relevant. The rest won’t.  
Isn’t it what you want?

Joey

---

<div class="post-metadata">

**Author:** ![ekatronik](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ekatronik/32/120_2.png) [@ekatronik](https://forum.mautic.org/u/ekatronik)\
**Post date:** [May 3, 2021, 1:37pm UTC](https://forum.mautic.org/t/how-to-create-own-token-field/19302/5 "2021-05-03T13:37:40Z")

</div>

Hmmm…  
I am not sure…  
but I will try this dynamic content…

thanks

---

<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:** [May 3, 2021, 2:39pm UTC](https://forum.mautic.org/t/how-to-create-own-token-field/19302/6 "2021-05-03T14:39:47Z")

</div>

Your other option is the TWIG templates plugin.  
That would also work.

> **[Twig Templates for Mautic](https://mtcextendee.com/marketplace/twig-templates-for-mautic/)**
>
> Buy now one domain license / 39€ – buy nowunlimited license / 169€ – buy now Buy now one domain license / 39€ – buy nowunlimited license / 169€ – buy now

---

<div class="post-metadata">

**Author:** ![ekatronik](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ekatronik/32/120_2.png) [@ekatronik](https://forum.mautic.org/u/ekatronik)\
**Post date:** [May 4, 2021, 4:18pm UTC](https://forum.mautic.org/t/how-to-create-own-token-field/19302/7 "2021-05-04T16:18:22Z")

</div>

Yes… that is best solution
