jbroadway / elefant

Elefant, the refreshingly simple PHP CMS and web framework.
http://www.elefantcms.com
MIT License
208 stars 39 forks source link

Blocks that can generate multi-column and series layouts #295

Closed lux closed 4 years ago

lux commented 5 years ago

So we can quickly define pages like this without needing to create or modify a template:

| - 25 - | --------- 75 -------- |

| - 25 - | ---- 50 ---- | - 25 - |

| --------- 75 -------- | - 25 - |

| ----- 50 ----- | ---- 50 ----- |

I tried a version of this a few years back, but it was an overly complicated solution.

I think there's a simpler approach that just manages the page structure as a simple Javascript array of rows with a few properties like:

We can serialize that to a new JSON field in the database (mediumtext?), probably in Blocks.

Could we also use filemanager/photo to let people choose a full-width background image for a whole column?

lux commented 4 years ago

A big update to blocks/group is now in master and coming in 2.2.1