Manually create layouts?
PermalinkI'm trying to develop a site for someone, in which they would want to have blocks to show in 'different layouts' e.g. 3 blocks on one line all the same size, 2 blocks with one wider than the other etc.
I know C5 has the layout tool which allows the user to customise the width of the block space they want to use, however I would like to be able to allow the client to choose from a set list of layouts, to which they can then add in the blocks into the new created areas.
Ideally they would be able to create a layout, choose from pictures of available layouts (like how you might currently choose a page type etc.) and then that would create the fixed blocks for them to then add to.
I had planned on creating this as a block, but it seems that C5 doesn't like the creation of blocks within blocks. I have seen the area splitter in the marketplace, but it doesn't exactly fit my needs (although I could pull the code out and apart to make my custom layout block).
I guess my question is; could there be a manual way to create a layout via a block, or a way to perhaps 'extend' the layout system so that a fixed layout could be created at any time using graphics to distinguish between them?
Cheers,
Dan
Only issue with that is you get a nice empty 'red bar' at the top of the newly added blocks - although I like to write in there 'click to delete the below layout' so it serves a purpose.