Replacing a module with a snippet in a modular email template
Hi 😊
Has anyone been successful at replacing entire modules with dynamic snippets in a modular email template using the following method:
- adding the entire module HTML to the snippet; and
- adding <div class="mktoSnippet" id="example" mktoName="example" mktoDefaultSnippetId="12"></div> to the email template nested between <td> tags, for example:
<!-- Module Starts -->
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="mktoModule" mktoname="Header Logo" id="header_logo">
<tr>
<td>
<div class="mktoSnippet" id="headerLogo" mktoName="Header Logo" mktoDefaultSnippetId="47B2"></div>
</td>
</tr>
</table>
<!-- Module Ends -->
I haven't notice any issues with this approach but would hate for something to wrong after I have migrated the large number of assets in our database to the new template. I got in touch with Marketo Support and they said it is not possible to replace an entire module (as opposed to editable elements) in an email template and that they couldn't help with HTML questions.
Any thoughts would be much appreciated!