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

Tokens Inside of a Token (nesting tokens)

  • September 1, 2015
  • 3 replies
  • 7461 views

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.
Best answer by Josh_Hill13

You cannot do this

3 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")

Dan_Stevens_
New Participant
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). ​

Mikes_Jones
New Participant
September 2, 2015

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

Josh_Hill13
Josh_Hill13Accepted solution
New Participant
September 1, 2015

You cannot do this

February 6, 2016

This isn't Inception. LOL! ; )