Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
You can write your own handler that rendering the content area. (https://world.episerver.com/documentation/class-library/?documentId=cms/7.5/C2943161)
Read more about it here in the blog by the great @valdis!
https://blog.tech-fellow.net/2015/06/11/content-area-under-the-hood-part-3/
Hi, I want to add a CSS class to the wrapping div of all ContentAreas. To do this with one ContentArea is easy:
@Html.PropertyFor(m => m.MainContent, new { cssClass="contentArea"})
The problem with this solution that I have to add this to all content areas in all views. Is there a better way to do this?