How to Model a Blog Post

A well-structured custom types for a piece of editorial content will provide flexibility for content teams to mix and match components with slices to build a blog post or an article featuring text sections, images etc.

Page structure

Static Fields
Dynamic Zone

Every blog post will need a title, so we will make this a static field. For this we will use a:

  • Title field
1 of 6
< PreviousNext >

You will need a release date, so we will make this a static field. We will use a:

  • Date field
2 of 6
< PreviousNext >

It is common practice to have an author as well. We will use another Custom Type "Author" for this and link them through a:

  • Content Relationship field
3 of 6
< PreviousNext >

This content block will consist of a:

  • Text field to allow the authors to add their text content
4 of 6
< PreviousNext >

This content block will consist of a:

  • Text field
5 of 6
< PreviousNext >

This content block will consist of:

  • Image field for the image
  • Text field for the caption
6 of 6
< PreviousNext >

How to set it up in Prismic

  • Create a new repeatable Custom Type
  • Copy the JSON below and paste it under the "JSON Editor" of this new Custom Type
CopyExpand/Collapse

What editors will see

How to model content for your project Sarah will be glad to help you come up with a solid content model for your project. (It’s free.) Attend one of her upcoming live Crash Course