Format templates

Format templates are just the same as what you would enter in the header, footer, events list or location list format settings in the general EME settings.

But sometimes you want to define a different format for event or location listings, depending on the page you are. In this case you can use the old “format” option for the eme_events shortcode, but that is not a very flexible solution. So now you can just define templates and use them with the option template_id. E.g.:

[eme_events template_id_header=2 template_id=3 template_id_footer=4]

You can also use templates for header and footers in the eme_events and eme_locations shortcodes, using the options template_id_header and template_id_footer. If you use template_id, you should also use template_id_header and template_id_footer. Reason is that EME no longer assumes anything about the layout if you change the template_id setting (so you then need a header/footer template too if creating a list).
Example templates would be:

  • For the list header template: <ul class=’eme_events_list’>
  • For the list entry template: <li>#_STARTDATE – #_STARTTIME<br /> #_LINKEDNAME</li>
  • For the list footer template: </ul>

Also many other shortcodes support placeholders, see their explanation for that.

Templates have 1 extra placeholder: #_INCLUDE_TEMPLATE{xx} (with xx being the id of another template). This allows you to include a template inside another template. So, for example, you can create a generic footer template and include that in several other mailing templates.

Scroll to Top