...
Code Block | ||
---|---|---|
| ||
<wm:editable tagcontentHolder="div${contentholder}" contentHolderclass="${pageVersion}maincontentarea" area="0" classtag="main_contentdiv"></wm:editable> |
This is the most basic and common usage. The class attribute is passed through to the outputted HTML. The following example shows how to wrap the title of a page version:
...
Code Block | ||
---|---|---|
| ||
<wm:editable tag="div" contentHolder="$ {pageVersion}" area="title" class="main_title">$ {pageVersion.title} </wm:editable> |
The following are examples of incorrect usage of the <wm:editable>
tag:
Code Block | ||||
---|---|---|---|---|
| ||||
<wm:editable contentHolder="${contentholder}" class="maincontentarea" area="0" tag="div">
<wm:render presentationName="freestylepresentation content" object="${contentholder}" startSeparator="0" endSeparator="1"/>
</wm:editable> |
Code Block | ||||
---|---|---|---|---|
| ||||
<wm:editable contentHolder="${contentholder}" class="maincontentarea" area="0" tag="div"><wm:render bject="${contentholder}"/></wm:editable> |
...
form
<wm:form>
- Returns an HTML form tag and a (number of) hidden input tags enclosed in it. Additional inputs can be defined in the body of the <wm:form>
tag.
...