1. Mandatory Tags

These tags must be included in all themes.

1.1. editor

This tag is mandatory and must enclose all tags of type pagebody, module and mailform in the theme file. Since these three tags are always used inside the HTML <body> tag, usually the editor is inserted immediately after the <body>:

<html>
...
<body><mesh:editor>
... body content...
</mesh:editor></body>
</html>

The purpose of this tag is to insert a <form> element when the page is being edited. For that reason, you must also enclose any other <form> tag into a ifnotediting tag, so your forms won't be shown during page editing (HTML does not allow nested forms).

1.2. pagehead

Inserts some headers found in the page. This tag is mandatory since it is needed when editing pages.

Attributes:

  • dropScripts: if true, <script> tags are discarded (default false);

  • dropStyles: if true, <style> tags are discarded (default false).

1.3. pagebody

Inserts the body of the page. This tag is mandatory since it is needed when editing pages (it makes no sense to have a theme that does not show the contents of the page anyway). This tag has no attributes.