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