Tokens Inside of a Token (nesting tokens) | Community
Skip to main content
Mikes_Jones
Level 7
September 1, 2015
Solved

Tokens Inside of a Token (nesting tokens)

Is this not possible?

I have footer links on each landing page, the footer links are deployed via a token {{my.footer-links}}, which contains 3 links.

I went inside the {{my.footer-links}} token (rich text), and tried to edit the HTML of one of the links by adding this: ?utm_medium={{my.utm_medium}}&utm_source={{my.utm_source}}&utm_campaign={{my.utm_campaign}}

Unfortunately, the {{my.utm_medium}}, {{my.utm_campaign}} and {{my.utm_source}} are not being populated

Thanks.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Josh_Hill13
Josh_Hill13Accepted solution
Level 10
September 1, 2015

You cannot do this

12 replies

February 17, 2016

You can add variables defined in script token to program tokens. For instance like that:

And then we have a script token in a folder above that defines $footeraddress:

#set($footeraddress = "Our Company @ our address")

Translate
Dan_Stevens_
Level 10
September 2, 2015

We use snippets for our country-specific footers. This enables us to do exactly what you want to do (we use tokens within our snippets). ​

Translate
Mikes_Jones
Level 7
September 2, 2015

Didn't even think about that! Thanks @Dan Stevens​ , will take a look at that shortly.

Translate
Josh_Hill13
Josh_Hill13Accepted solution
Level 10
September 1, 2015

You cannot do this

Translate
February 6, 2016

This isn't Inception. LOL! ; )

Translate