WEBeditInplaceBody
The render format template WEBeditInplaceBody must be added to each content area of a page template in which Easy Edit is to be used. (Content areas are defined in the header of a page template using CMS_BODY tags.) Among other things, it provides the button for creating new sections (Reference name: "WE_addSection"), renders the labelling on the button which is defined by the lastAddSectionLabel parameter, and assigns a tooltip to it, which is defined by the lastAddSectionDescription parameter.
The identifier of the content area must be given using the mandatory name parameter. The optional templateId parameter can be used to define a section template for preselection.
...
<body>
...
$CMS_RENDER(template:"WEBeditInplaceBody", name:"Content left")$
...
$CMS_RENDER(template:"WEBeditInplaceBody", name:"Content center")$
</body>
The template directly outputs the content of the respective content area. Therefore, no further output via $CMS_VALUE(#global.page.body("..."))$ is necessary. |
WEBeditInplaceBody expressions should not be nested with other templates, e.g. they should not be positioned between a WEBeditInplaceEditBegin and a closing WEBeditInplaceEditEnd. |
Mandatory parameters
Parameter | Explanation / Example |
---|---|
name | Specification of the identifier of the content area from the header area of the page template (CMS_BODY) in double inverted commas, e.g. |
Optional parameters
Parameter | Explanation / Example |
---|---|
templateId | Specification of the template ID of the section template which is to be preselected on adding a new section using the "Add Section" icon, e.g. |