Vulnerability in EPiServer.Forms
We have a block which in the view has a div class which requires an ID. E.G:
Some content inside my block
The block sits in a content area which is rendered from it's parent view using
My question is, that block1 id needs to increment in the view for each block - what's generally the best practice to achieve this?
You may build your own ContentAreaRenderer to control the surrounding divs, check this: http://blog.tech-fellow.net/2015/06/11/content-area-under-the-hood-part-3/
Or use this AddOn if you use Bootstrap
This is perfect sample on how to use block's ID to add it to the wrapping elements: http://blog.tech-fellow.net/2015/09/07/create-episerver-site-menu-out-of-block-driven-content/
It was needed for generating menus out of page content.
Luc, that package has nowadays pretty much nothing in common with Bootstrap ;)