voorhoede / head-start

Base setup on top of headless services to help you quickly start a new website
ISC License
3 stars 0 forks source link

Partial Block #34

Closed jbmoelker closed 9 months ago

jbmoelker commented 11 months ago

User story

As an editor, I want a partial block in the CMS, so I can use it for a collection of blocks I want to repeat on multiple pages.

In our typical setup each page is uniquely composed. If you want the same content on multiple pages, you'll need to add that content to every page. If you then want to make a change to that content you also have to do that in multiple places.

System design

In a previous project we've solved this as follows. There's a model, say Page Partial, with which you can compose part of a page using content blocks just like you would with a regular page (in that previous project this was called a Page Section Collection):

image

We then have a Partial Block which you can add to regular page and in which you can select or create a new Page Partial (in that previous project this was called a Shared Section):

image

Content models

Page Partial (model, not block)

Partial Block