|Number of votes:||0|
In CMS7 we got blocks which is great for all customers who get more flexible solutions.
Since there today isn’t any real nice solution to limit which blocks can go into a contentarea this introduces a bigger challenge for implementing the html / css and validating that everything looks fine.
Depending on the site and customer we can have page types which have none to maybe even only consist of contentareas. In combination with a lot of different blocks there are a lot of possible combinations to verify.
To make this process easier I have created a small tool. It generates test pages of your chosen page types adding the blocks you have chosen to all contentareas.
Note if you have page types with [Required] properties you need to either temporarily remove the required attribute or maybe use the #debug preprocessor statement to set default values so the page type at least don’t crash.
Here we want to generate test pages for all blocks and all page types and group them by block.
In example 2 we want to use all blocks and two page types but here we want to add all chosen blocks to each of the page types contentareas.
It’s created as a EPiServer.SimplePage. Just download the code and drop it the site root, change the name space and compile and you’re ready to go.
I hope you find it useful. Any feedback appreciated. The code is over at the code section.