EditLive!'s Template Browser functionality is only supported with an EditLive! Enterprise Edition license.
This element defines an individual template. The user can insert this template into EditLive! using the Template Browser plugin.
Configuration Element Tree Structure
<editLive>
<templates>
<category>
<template>
<editLive> ... <templates> <category name="Category 1"> <template ... /> </category> </templates> ... </editLive>
Required Attributes
name
The name of the template that will be displayed in the Template Browser.
value
This is where the template that will be inserted into EditLive! by the user is defined. The template may contain HTML, but it must be URL encoded.
Example
<div class="firstClass">text here</div> would be encoded as: value=%3Cdiv+class%3D%22firstClass%22%3Etext+here%3C%2Fdiv%3E.
Examples
The following example demonstrates how to define a heirarchy of templates.
<editLive> ... <templates> <category name="Category 1"> <category name="Sub Category 1"> <template name="Template 1" value="%3Cp%3EFirst+template%3C%2Fp%3E"> </category> <category name="Sub Category 2"> <template name="Template 2" value="%3Cdiv%3ESecond+template%3C%2Fdiv%3E"> </category> ... </category> ... </templates> ... </editLive>
Remarks
The <template> element can appear multiple times within the <category> element.
The <template> element must be a complete tag; it cannot contain a tag body. Therefore the tag must be closed in the same line. See the example below:
<template name=... />
Text assigned to the value attribute must be URL encoded as it is in the example above.