Starting a new headless CMS project and want to get the content model right from the beginning. Every project I have worked on has content model debt by month six because we did not think carefully enough about relationships and reusability.
What principles do you follow when designing a content model?
Principles I follow after years of getting it wrong:
Model content by meaning, not by page layout. A ‘Hero Section’ content type is a mistake. A ‘Product Highlight’ that can appear in a hero layout is correct.
Normalize aggressively. If two content types share the same fields, extract those into a shared component or reference type.
Plan for translation from day one even if you do not need it yet. Retrofitting multilingual support into an existing content model is painful.
Use reference types instead of embedding. A blog post should reference an Author, not contain author fields inline.
Name things for editors, not developers. ‘Featured Story Carousel’ means nothing to an editor. ‘Homepage Top Stories’ does.
the biggest lesson I have learned: avoid deeply nested content models. If you have a content type that references another that references another that references another, your API queries become complex and slow.
Two levels of nesting is comfortable. Three is manageable. Four means you should flatten your model.
I add one more principle: involve the content editors in the modelling process. Developers design elegant schemas. Editors know what the actual content entry workflow needs to be. The gap between those two perspectives causes most content model problems.
@priya_m the ‘model by meaning not layout’ principle is going to save me from a mistake I was about to make. Our wireframes were driving the content types instead of the content strategy. Fixing that now.
Internal linking is the most underrated SEO lever. Most sites have pages with zero internal links pointing to them. Those pages are invisible to Google.
Locked block patterns are the answer. Define the layout, allow editors to change content within it, prevent them from rearranging or deleting structural blocks.