Need help with adding multiple modules VERY frustrasting | Community
Skip to main content
September 13, 2018
Solved

Need help with adding multiple modules VERY frustrasting

  • September 13, 2018
  • 1 reply
  • 5153 views
Need help with adding multiple modules VERY frustrasting I've been trying for months to add multiple modules to my Marketo email template. The first module works fine, but when I try to add a second module, I keep getting an "Invalid Module" error. I've read forums extensively but nothing helps. What works: html What fails with "Invalid Module" error: html Here's my template structure. I have a container declared at the top, then my header, hero image, and content sections. The modules are nested within these content sections: html
>
        </td>
      </tr>
    </tbody>
  </table>

  <!-- About Section -->
  <table border=

Salubrious. You know what that
means don't you?

Your Checklist


Weeks of Oct. 16 and 23


Don't Let the Flu Beat You | Make an appointment to get your flu shot at one of our on-site clinics. Find out how.


Don't Let the Flu Beat You | Make an appointment to get your flu shot at one of our on-site clinics. Find out how.

 width=

Don't Let the Flu Beat You | Make an appointment to get your flu shot at one of our on-site clinics.


Upcoming Events


Mark your calendar and save the date for these upcoming events:


Oct. 17-18 | Flu Shot Clinics | CLT Office, 9 a.m. - 4 p.m.


Oct. 17-18 | Flu Shot Clinics | CLT Office, 9 a.m. - 4 p.m.


Oct. 17-18 | Flu Shot Clinics | CLT Office, 9 a.m. - 4 p.m.


Both modules have the same basic structure - they're elements with class="mktoModule" and unique IDs. The first one (article_listing_module) works fine, but the second one (event_listing_module) throws an "Invalid Module" error. I want to add several more modules but can't get past this error on the second one.
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 Frank_Breen2

This is great!!! Works perfect minus one thing. I can't seem to get this table row outside of the Event and Article modules without getting errors. It's at the bottom of both. The 40px height row is to be a spacer at the end of each section and was only on the last one (the one we used to make the module). I tried creating a separate table for it but it's not liking something.

<tr>

                <td height="40px" width="100%" style="height:40px;"></td>

              </tr>


I converted that 40px space into a spacer module, see attached for updated code.

1 reply

Frank_Breen2
New Participant
September 19, 2018

I see what you are looking to do here, but email 2.0 works slightly different, you can't nest your module in with all code, it needs on it's own within the container. Your HTML included lots of bad markup too, I fixed that, see the attached. I made each section a module so you could see it working, but what you need to do now is break up everything below 'Your Checklist' into modules.

Currently this is what I have for you:

Container

  1. Module (Header)
  2. Module (In Container 1)
  3. Module (In Container 2)
  4. Module (Split 1)
  5. Module (Split 2)
  6. Module (Footer)

But a suggested module root for your design would be:

Container

  1. Module (Logo)
  2. Module (Hero)
  3. Module (Body 1)
  4. Module (Body 2)
  5. Module (Body 3)
  6. Module (Check List)
  7. Module (Article Item)
  8. Module (Event)
  9. Module (Event Item)
  10. Module (Bottom CTA)
  11. Module (Footer)

Please note I left these two lines of code in the html, I kept them for reference, you should remove them once you recode

<!-- class="mktoModule" mktoname="Article Module" id="article_listing_module">-->
<!-- class="mktoModule" mktoname="Event Module" id="event_listing_module">-->

September 20, 2018

Thank you so much Frank for helping me out. Your the first to attempt to help me with my mess. You mentioned an attachment. I don't see anything. Must be missing something.