Looking through the Marketo email syntax documentation, I was wondering if it's possible to code an image element, but make it removable at the same time?
Here's my example:
<tr class="mktoModule" id="section2" mktoName="Section 2">
<div class="mktoImg" id="section2_img" mktoName="Section 2 Image" mktoImgLink="https://www.google.com/" mktoImgWidth="540" mktoImgHeight="189" mktoLockImgSize="false">
<a><img style="display: block; border-width: 0;"></a>
The element shows great, but if the user opts to not use an image, they're stuck.
Solved! Go to Solution.
The whole <tr class="mktoModule"> is removable, not the element. And to be removable, the module has to be in a container.
That's what I figured. So I'd either have to break the image out into a separate module, or ditch the image element and let people directly code it.
Hi again Matt,
at the moment, the image is already in a seperate module. In other term, the only thing the modiule with ID section2 contains is the image. If you remove the module, you remove the image and its placeholder.
so I am not sure I am following you.
Essentially I'm wanting to be able to create a second container, which isn't possible. I have a module that is a block of text with an image, and I want that image to be an optional image element so it can be removed easily if it's not desired. But based on what you're saying about modules, it won't work and I'll need to break it into a second module entirely. Sorry if I can't articulate it properly, but I think I have my answer.
PS: you could also provide 2 modules: one with image and text, another one with the text only. This is usually what we do, because it means that on the module with Image + text, you can better control how the 2 interact in responsive mode.