Z-index on property in edit mode - MVC


I read this http://joelabrahamsson.com/specify-z-index-for-a-propertys-overlay-in-episervers-on-page-edit-mode/

But can i do something like this when using (notice its a ContentArea)

@Html.PropertyFor(m => m.CurrentPage.BottomContentArea, new { CssClass = "row", tag = Statics.ContentAreaTags.FullWidth })


Jul 17, 2013 15:35

Hi, if someone else gets here via google I can confirm that the solution below works for setting z-index on content areas and custom blocks.

<!-- Content area -->
<div data-epi-overlay-z-index="501" @Html.EditAttributes(m => m.CurrentPage.BottomContentArea)>
        @Html.DisplayFor(m => m.CurrentPage.BottomContentArea)
<!-- Custom block -->
<div data-epi-overlay-z-index="501" @Html.EditAttributes(m => m.CurrentPage.CustomBlock)>
        @Html.DisplayFor(m => m.CurrentPage.CustomBlock)
Mar 21, 2016 9:27

Thanks for sharing Martin!

Mar 21, 2016 11:44
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.