Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
themeEclipse
<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
themeEclipse
<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
themeEclipse
titleIncorrect usage of the <wm:editable> tag
<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
themeEclipse
titleIncorrect usage of the <wm:editable> tag
<wm:editable contentHolder="${contentholder}" class="maincontentarea" area="0" tag="div"><wm:render bject="${contentholder}"/></wm:editable>

 

 

Back to Top

 

...

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.

...