On Page Editing Bocks


I use a view model and one of the properties is a list of blocks
The block just has 2 simple string properties.

When i use following razor markup in my overview page I am not able to edit the properties of my block on the page.
Note that the property is not on the root of my Model, i loop over the list of blocks in my view:

@foreach (var element in Model.elements)
@foreach (var block in element.Blocks)

@Html.PropertyFor(m => block.Description)>/p>

So my question is: can you have onpage editing for block properties (if the block is not your current model)?

Jul 18, 2017 13:58

This is not really how Episerver works. The concept of On-Page edit is that the editor needs to go to those specific blocks to edit them. Not edit them from another context of On-Page edit (for example from On-Page for another block or page)

Jul 18, 2017 16:13
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* 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.