Blocks

Permalink
Hi,

Can you drag a block on top of another block?

Thanks

Engine44
 
jakobfuchs replied on at Permalink Reply
jakobfuchs
I don't think so. What are you trying to achieve?
Engine44 replied on at Permalink Reply
Engine44
Just wanted to know if it was possible. I guess I was thinking about layering that is typically available in photo editing programs.

Thanks
razorcommerce replied on at Permalink Reply
razorcommerce
Simple answer is "no". One exception is the Core Area Layout. It's a block, but a special block in that it creates Areas which can then contain blocks.

A Horizontal Rule with an AutoNav in it, with a nested PageList... what kind of frankensite sort of thing would that be.

One way I could see this being actually useful would be some kind of positioning solution, as an alternative to Core Area Layout. Instead of a grid, maybe an absolute positioning div where you could place blocks in an exact spot inside of a canvas. That would be kind of interesting... for form layout.
JohntheFish replied on at Permalink Best Answer Reply
JohntheFish
Positioning a block on top of another block can be done with css using area and block styles.

Make div of the containing area position relative.

Then add css for position absolute, x and y offsets and a z-index to the block you want to position on top.

However, there is a very dangerous trap in doing such, it could position the block in a way that prevented the block underneath or even the area from being edited.

So a neater and safer approach would be to create a custom template for the on-top block that only applied the styles when not in edit mode.