SOLVED

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

Go to solution
Scotty73
Level 1

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

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!

1 ACCEPTED SOLUTION

Accepted Solutions
SanfordWhiteman
Level 10 - Community Moderator

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

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.

View solution in original post

2 REPLIES 2
SanfordWhiteman
Level 10 - Community Moderator

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

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.
Jo_Pitts1
Level 10 - Community Advisor

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

@Scotty73 ,

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.