mktoModuleScope question/issue | Community
Skip to main content
November 15, 2016
Question

mktoModuleScope question/issue

  • November 15, 2016
  • 1 reply
  • 2697 views

Hi,

I'm just starting and learning to build these Marketo Emails, and I have run into a issue that seems to crash the 2.0 editor.

I have defined a meta color variable.. in the header.

<meta class="mktoColor" id="SpacerBGColor" mktoName="SpacerBGColor" default="#FFFFFF">

and the called it in my module, that works, but its a global variable.. I would like a local variable.

<table class="mktoModule wrapper" mktoname="Divider 1" id="Divider_1"   width="600" cellpadding="0" cellspacing="0" border="0" style="line-height: 0 !important; vertical-align: bottom !important; border-collapse: collapse; ">

     <tbody>

          <tr>

               <td height="5" style="font-size:5px; line-height:5px; background-color:${SpacerBGColor};"></td>

          </tr>

     </tbody>

</table>

as soon as I add mktoModuleScope="true" and I save it, the editor crashes (doesn't reload sits on the purple screen ) and doesn't reload.

Any ideas would be greatful.

Cheers.

warik

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Grégoire_Miche2
Level 10
November 15, 2016

Hi Warik,

Just to make sure, you are adding the mktoModulescope="true" to the variable definition in the Meta, are you ?

You module is wrapped in a <TD class="mktoContainer">?

You probably want to test adding add a   in the <td>

Can you provide a longer piece of code?

-Greg

November 15, 2016

Hey Greg,

My module is wrapped with an td.

<td class="mktoContainer" id="MainCont" width="100%" valign="top" align="center">

As soon as i add the mktoModulescope="true" to the meta, the editor crashes.

I have 13 other modules, but none use the meta class, its weird.

I'm stumped.

warik

November 16, 2016

Hi again,

I just wanted to double check the bug, to see if it affected other templates, and it wasn't just my code.

I opened the "Blank Template" in the My templates section, then I added mktoModulescope="true" to the below code.

<meta class="mktoColor" id="ctaBackgroundColor" mktoname="Background Color" default="#ffffff"/>

I saved, then the editor froze, and became unresponsive.

I am running MAC, Chrome, Version 54.0.2840.98 (64-bit).

Thanks  in advance.

Warik