DEV Community

Galih A
Galih A

Posted on

Content modeling in Contentful

Unlike other headless CMS, Contentful provides contents in Chunk, instead of Blob. (e.g. Wordpress)

  • Start by breaking down the UI requirement
  • If for same context (e.g. Translations, Carousel, Text Block, etc) — Content types can be used for across platforms / channels (i.e. both Native app and Website); free of predefined layout / context
  • Styling fields should be minimized — if any required, new topics / assemblies can be considered
  • Specific content type will be rendered as specific UI component in the frontend

Content type defines the structure needed for content modeling. There are two kinds of Content type; Assembly & Topic

Assembly

Examples; carousel, a set of featured events, a modular page layout, a basic page, etc.

  • To put together either / both of topics & assemblies
  • Sometimes reusable
  • May be tied to context -> not reusable
  • Bridge between business topics & frontend component

Topics

  • Each topic represent specific governance / business purpose;
    • Permission
    • Internationalization plan
    • FE functional requirement
    • Other requirement*
  • Reusable, smaller part of a component
  • To be put inside assembly

Source: https://www.contentful.com/help/topics-and-assemblies/

Top comments (0)