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

Compare with Current View Page History

« Previous Version 4 Next »

Do not Place HTML Inside the wm:editable Tag

When you develop JSP's using a <wm:editable> tag, you must make sure that you don't render the content of the contentholder within the tag itself. For example, render content as follows:


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


<wm:editable contentHolder="${contentholder}" class="maincontentarea" area="0" tag="div">
   <wm:render presentationName="freestylepresentation content" object="${contentholder}" startSeparator="0" endSeparator="1"/>
</wm:editable>

 


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

 

 

 

 

 

 

 

 

 

 

 

 

  • No labels