content-modeling-best-practices

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Content Modeling Best Practices

内容建模最佳实践

Principles for designing structured content that's flexible, reusable, and maintainable. These concepts apply to any headless CMS but include Sanity-specific implementation notes.
设计灵活、可复用且易维护的结构化内容的原则。这些概念适用于任何无头CMS,同时包含Sanity专属的实施说明。

When to Apply

适用场景

Reference these guidelines when:
  • Starting a new project and designing the content model
  • Evaluating whether content should be structured or free-form
  • Deciding between references and embedded content
  • Planning for multi-channel content delivery
  • Refactoring existing content structures
在以下场景中可参考本指南:
  • 启动新项目并设计内容模型时
  • 评估内容应采用结构化还是自由格式时
  • 决定使用引用还是嵌入内容时
  • 规划多渠道内容分发时
  • 重构现有内容结构时

Core Principles

核心原则

  1. Content is data, not pages — Structure content for meaning, not presentation
  2. Single source of truth — Avoid content duplication
  3. Future-proof — Design for channels that don't exist yet
  4. Editor-centric — Optimize for the people creating content
  1. 内容即数据,而非页面——基于内容含义而非展示形式进行结构化
  2. 单一事实来源——避免内容重复
  3. 面向未来——为尚未出现的渠道进行设计
  4. 以编辑为中心——为内容创作者优化体验

Resources

资源

See
resources/
for detailed guidance on specific topics:
  • Separation of content and presentation
  • Reference vs embedding strategies
  • Content reuse patterns
  • Taxonomy and classification
请查看
resources/
目录获取特定主题的详细指导:
  • 内容与展示分离
  • 引用与嵌入策略
  • 内容复用模式
  • 分类法与分类体系