If you're creating your own custom template and want the option to edit it in our visual content editor, our template language needs to be added to your template's HTML code using our recommended naming conventions to identify the table cells, divs, or images that you would like to be able to edit in the visual editor.

When building your template, it's a good idea to limit the number of editable spaces in the template to keep things simple, and you should name all editable spaces consistently. The name you assign via mc:edit=" somename" is used to create a field in the database to store the user's content. If they switch templates after writing content, they could lose their copy if the editable space names aren't consistent. Use the following conventions for common content areas:

  • mc:edit="header" – used to name the header of your email.
  • mc:edit="header_image" – used to name an editable header image.
  • mc:edit="sidecolumn" – used to name an editable left- or right-side column.
  • mc:edit="body" – used to name the main content space of your email.
  • mc:edit="footer" – used to name the footer of your email.

You should not place editable images within an editable content container.

Editable Content Area – mc:edit="section-name"

Attribute added to elements whose content should be editable. Will open WYSIWYG text editor. The attribute value should be alpha-numeric, and unique. Edit values cannot be the same as any other in your template.

<td class="defaultText" mc:edit="body">
<h2 class="title">Primary Heading</h2>
<p>Sample copy. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Morbi commodo, ipsum sed pharetra gravida, orci magna rhoncus neque, id
pulvinar odio lorem non turpis.</p>
<h3 class="subTitle">Subheading</h3>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</p>
</td>

Editable Image Area

Attribute added to image elements that are editable. Will open image upload/edit window. The attribute value should be alpha-numeric and unique. Edit values cannot be the same as any other in your template.

<img mc:edit="postcard" style="max-width:600px;" />

Editable Text Header – mc:allowtext

Attribute added to header image to allow user to set a text heading instead of using an image.

<img mc:edit="header_image" mc:allowdesigner mc:allowtext />

Repeating Content Area

Defines a content block that can be repeatedly added to the template. An mc:edit item must always be nested within an mc:repeatable item, as seen below. Repeatable sections are appended with a unique ID every time a duplicate is created, and several repeatable sections within a template are possible.

<div class="article" mc:repeatable>
<h3 mc:edit="article_title">Title</h3>
<p mc:edit="article_content">Content</p>
</div>

Hideable Content Area

Defines a content block that can be toggled between hidden and shown during campaign creation.

<div mc:edit="content" mc:hideable>
</div>

Variable Content Area

Defines a content block that lets you switch between any number of different content structures (blocks of HTML) within your email. The mc:repeatable tag is familiar, save for one detail: it's taking a name (in this case, "product"). That's an important difference between a normal mc:repeatable tag, where no name is required. See More Examples.

<div mc:repeatable="product" mc:variant="content with left image"> </div>

Note

  • If you're editing hideable sections in the Campaign Builder using the remove button in your campaign, please note that the section won't disappear in the Campaign Builder screen. The section you want to remove will fade, but it will remain just in case you change your mind and want to use the space. However, when you send out your email, the section you have "removed" won't appear in your campaign. You can preview this change by clicking on Preview and Test and then Enter Preview Mode.
  • The remove and hide this section buttons don't offer the same functionality in the Template editor. In fact, you can't actually remove anything while working in the Template editor. If you need to make changes like that, we suggest you work in the Campaign Builder instead.

Was this article helpful?
 
 
What can we do to improve your experience with articles like this?
Thanks for submitting your feedback!
At this time, we are unable to reply to any responses, but we'll use this information to keep the site up-to-date.
Sorry, we were unable to submit your feedback. Please try again later. Thank you for your patience.

Related Articles