You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

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:

 <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:

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


but implement the tag like this:

<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.

  • No labels