Can I reference a mktoText instance in velocity to duplicate its content? | Community
Skip to main content
New Participant
December 3, 2021
Solved

Can I reference a mktoText instance in velocity to duplicate its content?

  • December 3, 2021
  • 2 replies
  • 1608 views

Hi,

 

I'm building out an email template and have several mktoText instances that I need to duplicate the content of into mobile-only and outlook-only sections of the code. 

 

Is this possible? 

 

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 SanfordWhiteman
There's no supported way to do this, and unless you have a ton of Velocity experience I wouldn't go down this road.

Also, hacks that allow this approach still won't support links in the mktoText.

2 replies

Jo_Pitts1
Community Manager
December 5, 2021

@asdfasdfasdfsdafsdafdsafa ,

why would you need to duplicate the mktoText for those reasons?

 

typically you'd have code that encapsulated outlook, mobile, and 'everything else' in a nested (for want of a better term) manner.

 

e.g.

<MSO Specific VML Code> <HTML Code referencing Media Query CSS classes> <mktoText stuff> </HTML Code referencing Media Query CSS classes> </MSO Specific VML Code>

 

You may have more HTML stuff outside the VML stuff as well.

 

There shouldn't really be a need to duplicate mktoText.

SanfordWhiteman
SanfordWhitemanAccepted solution
New Participant
December 3, 2021
There's no supported way to do this, and unless you have a ton of Velocity experience I wouldn't go down this road.

Also, hacks that allow this approach still won't support links in the mktoText.