<p>I would use a <a href="https://craftcms.com/docs/matrix-fields" rel="nofollow noreferrer">matrix field</a> with multiple types.</p>

CC BY-SA 3.0
2014-08-09T20:04:55.587Z
That's a solution, yes. But the disadvantages I see there are: 1) You need one field type for every layout + all need a name. 2) I need to edit a field (the matrix field) everytime I want to add a layout. But it's the most convenient way I guess. I was also thinking about structures and channels..
Andreas Linnert
CC BY-SA 3.0
2014-08-09T21:26:56.123Z
I would pick structures over channels because of the reordering option. You would need to add an entry type instead of a matrix type for a new layout, which is more hassle, but also more flexible - more field types possible in an entry type than in a matrix type.
Marion Newlevant
CC BY-SA 3.0
2014-08-09T18:45:46.550Z
2017-10-26T09:27:25.863Z
2017-10-26T09:27:25.863Z
Marion Newlevant
<p>I've done something similar with custom includes. Make a new section called 'includes' with a matrix to build content and options for background colour, text colour etc. Then from your 'home' page (or whatever page) have an 'entries' field that links to those includes.</p>

<p>An added benefit of this method is that you can use these sections on multiple pages.</p>

CC BY-SA 3.0
2017-10-26T10:30:32.117Z
2017-10-26T10:30:32.117Z
dmatthams
<p>I'm trying to build a page similar to the index page of buildwithcraft.com. There you have a page with (visual) sections ("A new kind of flexible", "Ready where you are" and so on). Each one has different backgrounds and maybe different layouts as well. Therefore you need a different set of input fields for every such section.</p>

<p>What's the best way to set up a (craft) section that allows you to edit pages like that?</p>

<sections><best-practice>
How do I set up a section for pages with very flexible content?
# How do I set up a section for pages with very flexible content?

(Asked by: username_0 on 2014-08-09)

I'm trying to build a page similar to the index page of buildwithcraft.com. There you have a page with (visual) sections ("A new kind of flexible", "Ready where you are" and so on). Each one has different backgrounds and maybe different layouts as well. Therefore you need a different set of input fields for every such section.

What's the best way to set up a (craft) section that allows you to edit pages like that?

**Tags:** sections, best-practice

---

## 2 answers

### Answer by username_1 on 2014-08-09. Score: 3 | Accepted answer

I would use a [matrix field](https://craftcms.com/docs/matrix-fields) with multiple types.

> **Comments:**
> **username_0**: That's a solution, yes. But the disadvantages I see there are: 1) You need one field type for every layout + all need a name. 2) I need to edit a field (the matrix field) everytime I want to add a layout. But it's the most convenient way I guess. I was also thinking about structures and channels..  
> **username_1**: I would pick structures over channels because of the reordering option. You would need to add an entry type instead of a matrix type for a new layout, which is more hassle, but also more flexible - more field types possible in an entry type than in a matrix type.  

---

### Answer by username_2 on 2017-10-26. Score: 1

I've done something similar with custom includes. Make a new section called 'includes' with a matrix to build content and options for background colour, text colour etc. Then from your 'home' page (or whatever page) have an 'entries' field that links to those includes.

An added benefit of this method is that you can use these sections on multiple pages.


---

