It is possible to create reusable content structures within the template called typedef.
To insert these objects into the template, two steps are needed:
Content definition
<div mn:typedef mn:name="MyContent" mn:label="Nome oggetto" mn:panel mn:panelsection="Corpo" mn:panelorder="5" mn:thumbnail="[ico:imgtop]">
<table width="600" cellpadding="0" cellspacing="0" border="0">
<tr>
<td valign="top" style="text-align:center;">
<img mn:id="editImage" width="564" border="0" style="display:block;text-align:center" mn:editable mn:hideable alt="" />
</td>
</tr>
<tr>
<td valign="top" >
<div mn:editable mn:id="editTitle" mn:hideable>Lorem Ipsum</div>
<div mn:editable mn:id="editDescription">Sed aliquam auctor congue. Fusce varius, leo vitae pulvinar varius, diam mauris faucibus velit, non> </div>
</td>
</tr>
</table>
</div>
Object calling within the container
<div mn:container mn:repeatable mn:type="MyContent" mn:default="MyContent"></div>
Content attributes
Attribute | Description | Example/Default value |
---|---|---|
mn:name | Name of the content. | mn:name="MyContent" |
mn:label | Content label in the interface. | mn:label="Contenuto 1" |
mn:panel="" | Shows content in the content bar. | |
mn:panelsection="" | Shows content in a specific panel. | mn:panelsection="Corpo" |
mn:panelorder="" | Order of the content in the panel. | mn:panelorder="5" |
mn:thumbnail="" | Icon representing the content. | mn:thumbnail="[ico:imgtop]" |