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/

Sentry blog image

How I fixed 20 seconds of lag for every user in just 20 minutes.

Our AI agent was running 10-20 seconds slower than it should, impacting both our own developers and our early adopters. See how I used Sentry Profiling to fix it in record time.

Read more

Top comments (0)

Heroku

Build apps, not infrastructure.

Dealing with servers, hardware, and infrastructure can take up your valuable time. Discover the benefits of Heroku, the PaaS of choice for developers since 2007.

Visit Site

👋 Kindness is contagious

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay