Then you have three options:
1. Either implement your own content area renderer with support for this. Most fun option but takes most time...
2. Render the blocks inside the content area manually by looping through the FilteredItems collection on the property.
3. Change your gui implementation to not require ids etc. I normally go for this option and spend my hours on other functionality to be honest :)
Ok I'll just skip the list then, and add a couple of extra wrapping divs around stuff. I don't really love littering my DOM with extra elements but still need my aria-attributes. I could probably afford to create my own content area renderer but I might end up in a situation where I need to rewrite every single renderer for concistency.
Really poor implementation of PropertyFor though since it apparently delegates to DisplayFor and should enable me to add whatever custom attributes to an element that I want (aria, data, id, ng, whatever).
How'd you guys handle this in Angular with the ng-? Wrappers also?
(Also, thanks for the answer :))
Hi
Is it possible to create a custom renderer for ContentAreas without swapping out the default one entirely? In my case I want to render it as a
with- -elements.
I can solve this by just specifying CustomTag and ChildrenCustomTagName (naming inconsistency right there). But I also want to specify an id on both children and the contentarea itself as well as some aria tags for accessibility reasons but the default implementation doesn't even seem to give me the possibility to add something as simple as an ID?
PropertyFor heavily lacks options for this and @Model.ContentArea just renders the names of the children.