The content you add to your template is by default fixed and will be the same for all your campaigns.
However, if you have some content which needs to be updated campaign by campaign is recommended that you leave this open to editing. Mark the items you want to make editable by including e-editable
in that element's tag along with a unique identifier. This way, you can make sure that only those parts of the template are editable which you want people to edit. You can make any text, image or link editable.
<td e-editable="leadText">
Get 10% off!
</td>
Please note the following:
- Every e-editable identifier should be unique within each content block. It is also possible to use the same identifier for more blocks. However, if you have two or more items with the same identifier and changing the content in the text editor of only one of the items it will automatically overwrite the content of the items with the same identifier. Other blocks with the same unique identifiers will not be affected.
- Therefore, for example in the case of the Multi-language feature, you must use unique
e-editable
tags for each language versions as seen in the code example below:
<e-language locales="en-US">
<span e-editable="editable_name_en">Link EN</span>
</e-language>
<e-language locales="hu-HU">
<span e-editable="editable_name_hu">Link HU</span>
</e-language>
Sometimes having the same identifier can be useful, for example if you want to link to the same URL in more than one place in a block. Having the same identifier for the link tags will guarantee that they always point to the same place.
Example of two CTAs with two e-editable links:
<tr>
<td align="center">
<a href="https://mypage.com/1.html" e-editable="ctaurl1" target="_blank" title="Call
to action" class="cta-big">
<span e-editable="cta1">SHOP NOW CTA1</span>
</a>
</td>
</tr>
<tr>
<td align="center">
<a href="https://mypage.com/2.html" e-editable="ctaurl2" target="_blank" title="Call
to action" class="cta-big">
<span e-editable="cta2">SHOP NOW CTA2</span>
</a>
</td>
</tr>
The <span> tag is required for text links, with a unique e-editable attribute.
Example of an e-editable image with an e-editable link:
<a href="https://mypage.com" e-editable="bannerurl" target="_blank" title="Banner url">
<img src="http://mypage.com/image.png" e-editable="bannerimage" width="600px" alt="Banner image">
</a>
If you want to make an image editable and linkable in the same time, you need to place the <img> tag within the <a> tag and you cannot have any other elements between them, as shown above.
Make sure not to nest tags with the e-editable
attribute into each other.
This can cause various problems, such as, the analysis name being impossible to update in the Links tab.
Any such cases need to be corrected on the template level to correct all campaigns built with that template.
An exception to this rules are <span></span>
tags within <a><a/>
tags.