SaaS CMS has officially launched! Learn more now.

Extra div-s in page markup


Is it planned to remove the extra div-s you are using for edit on page in Edit mode when user is not logged? in or is there perhaps already a way to get rid of these?

Jan 29, 2013 10:03

If you are referring to the web controls used to render properties for web forms then the answer is: No, we don't plan to change this. The reason for this is that we want to generate the same html for the public site as for the editor to get as much WYSIWIG-experience as possible.

Jan 29, 2013 11:00

Are there plans to erradicate this extra markup in 7.5?


Oct 28, 2013 18:39

Web forms still render the same amount of html-elements in 7.5 (same in edit as in the view). For MVC, there will be an additional wrapping element when editing the content.

Oct 28, 2013 20:02

I understand the problem. But it would be great if we could control the output better. For instance where the editing attributes should be rendered.

It would also be great if we could pass custom settings to a block from the RenderSettings control, now these settings are only passed to the rendering control, not the block control. For example pass number of columns, image size and so on we want for the content area:

<EPiServer:Property PropertyName="ContentArea" runat="Server">
   <RenderSettings Columns="3" ImageSize="300" />

And then in the block be able to access those settings:

public partial class MyBlockControl : BlockControlBase<SlideBlock>
    public int ImageSize 
            return RenderSettings.ItemAs<int>("ImageSize");


Oct 29, 2013 0:13

Feedback taken. We have created a user story to look into this. It will not make it to the 7.5 release but hopefully we can improve some of the areas after the release. Except of these things we also want to make it configurable if a user control should be loaded or not when the property is null to be able to render some default markup.

Nov 14, 2013 13:32

I came up with an interim solution to pass custom settings to the rendering control, please see

Edited, Jan 20, 2014 18:15
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.