...
Do not Place HTML
...
Inside the wm:editable
...
Tag
When you develop JSP's and using a wm<wm:
editable tag is used you must make sure you don't editable>
tag, do not render the content of the contentholder content holder within the tag itself. For example, render content as follows:
Code Block |
---|
<wm:editable |
...
contentHolder="${contentholder}" class="maincontentarea" area="0" tag="div"></wm:editable> |
This implementation ensures that personalizations and variants for content elements are rendered correctly.
The following are examples of incorrect usage of <wm:editable>
tags:
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 bjectobject="${contentholder}"/></wm:editable> |
but implement the tag like this:
Code Block |
---|
<wm:editable contentHolder="${contentholder}" class="maincontentarea" area="0" tag="div"></wm:editable> |
...
The <wm:render>
tags shown in the examples above may not be used in a <wm:editable>
tag.