Quantcast
Channel: Developer to developer
Viewing all articles
Browse latest Browse all 9076

Rendering ContentArea as list

$
0
0

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 <ul> with <li>-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.


Viewing all articles
Browse latest Browse all 9076

Trending Articles