Skip to main content

Content models

To make your contentful space work with the @deity/falcon-blog-extension some content models have to be created in your space, those are Author, BlogPost, BlogPage and lastly BlogCategory.

To get started login to your contentful space and navigate to Content Model in the topbar navigation. Here you can add the following content models;

Author

Create a content type named Author and check if the generated content type id equals author. If this is not the case adjust to match author and save the model. Add the following fields and save again.

NameField IDField TypeValidation
NamenameShort text-
SlugslugShort text-

Blog Category

Create a content type named Blog Category and check if the generated content type id equals blogCategory. If this is not the case adjust to match blogCategory and save the model. Add the following fields and save again.

NameField IDField TypeValidation
NamenameShort text-

Blog Page

Create a content type named Blog Page and check if the generated content type id equals blogPage. If this is not the case adjust to match blogPage and save the model. Add the following fields and save again.

NameField IDField TypeValidation
TitletitleShort text-
SlugslugShort text-
ContentcontentRich text-
ImageimageMediaSet accept only specified file types to Image
AuthorauthorReferenceSet accept only specified entry type to Author

Blog Post

Create a content type named Blog Post and check if the generated content type id equals blogPost. If this is not the case adjust to match blogPost and save the model. Add the following fields and save again.

NameField IDField TypeValidation
TitletitleShort text-
SlugslugShort text-
ContentcontentRich text-
ImageimageMediaSet accept only specified file types to Image
AuthorauthorReferenceSet accept only specified entry type to Author
CategoriescategoriesReferences, manySet accept only specified entry type to Blog Category