Customize content area rendering in MVC templates

Ted
Ted
Vote:
 

I'm looking for the MVC helper equivalents of the Property control's properties used for customizing the rendering of content areas.

In other words, how to set the element and class names of the content area container as well as the individual block containers in MVC templates?

Is this even possible using the PropertyFor helper?

Thanks!

#62723
Nov 01, 2012 15:04
Ted
Vote:
 

Nevermind, sometimes the solution is right in front of you... :)

@Html.PropertyFor(m=>m.MyContentArea, new { CssClass = "row", CustomTag = "section", ChildrenCustomTagName = "article", ChildrenCssClass =  "span4"})

    

#62725
Nov 01, 2012 15:21
Vote:
 

Is there now a better solution than forcing ChildrenCssClass that appends to the class?

Could one decide how may blocks/object that fits into a ContentArea?

#73792
Aug 09, 2013 15:08
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.