Show ContentArea Name in OnPageEdit

Vote:
 

Hi! I'm developing a page which has a lot of ContentAreas. We have many ContentAreas since we want to restrict certain ContentAreas to only show specific blocks/pages (i.e. AllowedTypes-attribute).

This works pretty well in "Forms-mode" since there you can see the Name (display name) of the ContentArea. But in OnPageEdit the ContentAreas just stack on top of each other and it will be hard for the editors to know what content should be used for what ContentArea.

Is there any way to show the Name in OnPageEdit?

Thanks in advance!

#174380
Jan 25, 2017 11:18
Vote:
 

An easy, but perhaps not very elegant solution would be to add the name to the view:

@if (PageEditing.PageIsInEditMode)
{
    <i>Name of content area</i>
}
#174383
Jan 25, 2017 11:24
Vote:
 
#174402
Jan 25, 2017 16:36
* 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.