Versions Compared

Key

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

No HTML inside the wm:editable tag

When you develop JSP's and a wm:editable tag is used you must make sure you don't render the content of the contentholder within the editable tag itself.

Don't:

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>

and also don't use it like:

Code Block
 <wm:editable contentHolder="${contentholder}" class="maincontentarea" area="0" tag="div"><wm:render bject="${contentholder}"/></wm:editable>


but implement the tag like this:

Code Block
<wm:editable contentHolder="${contentholder}" class="maincontentarea" area="0" tag="div"></wm:editable>

The reason for this implementation is that it ensures that personalisations and variants for content elements are rendered properly.