Quantcast
Channel: Developer to developer
Viewing all articles
Browse latest Browse all 9076

On Page Editing Bocks

$
0
0

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)

<p>@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)?


Viewing all articles
Browse latest Browse all 9076

Trending Articles