Contentful logo

Contentful Community

Create modules, blocks or section for pages

How do I create different sections/blocks/modules for a homepage using contentful? I’ve searched the doc but couldn’t find the answer.

In my index page, I’d like to have a “Hero” section, a “click to action” section, a “testimonial” section ect…

(using contentful with Gatsby)

1 Like

@kenold What you’re looking for is “content types”
This guide had some good info to get use to this concept: https://www.contentful.com/r/knowledgebase/content-modelling-basics/

For example, basically you want to create a content type of “Hero” that accepts one text field. Then you create another content type of Button, that will accept a text field and maybe another field for the url, etc. Does it make sense?