---
title: "Academy Lesson"
canonical_url: "https://academy.laioutr.com/en/lektionen/developer-content-collections-in-code"
locale: en
meta:
  "og:title": "Academy Lesson"
---

[Go to home](https://academy.laioutr.com/en)

- [Agentic Developer](https://academy.laioutr.com/en/lernpfade/developer-learning-path)

- [Content collections in code](https://academy.laioutr.com/en/lektionen/developer-content-collections-in-code)

Content collections in code

# Content collections in code

10 min

Content collections hold structured content such as blog articles, FAQs or team members. This lesson shows how a collection is defined in code, which fields are localised, how sections query entries and how editorial teams maintain the entries in Cockpit afterwards. Details on the definition are in the docs.

## Key takeaways

- Collections are defined in code.
- Localised fields have one value per language.
- Editorial teams maintain entries in Cockpit.

## Read more

- [Declare content collections in code](https://academy.laioutr.com/en/artikel/declare-content-collections-in-code)15 min

  The project defines which content types the Laioutr CMS manages in the collections option of @laioutr-app/cms. After the next deployment, the types appear in Cockpit under Content, and their entries answer Orchestr queries like any other backend.
- [Manage content in Content Collections](https://academy.laioutr.com/en/artikel/manage-content-in-content-collections)6 min

  Content Collections are the place for structured content such as blog posts, recipes or authors in Cockpit. Under Content › Collections, entries are created, maintained per language, linked and published without a deployment.

## Structured Data

```json
{
  "@context": "https://schema.org",
  "@graph": [
    {
      "@id": "https://academy.laioutr.com/#website",
      "@type": "WebSite",
      "inLanguage": "en",
      "name": "Default",
      "url": "https://academy.laioutr.com/",
      "translationOfWork": {
        "@id": "https://academy.laioutr.com/#website"
      }
    },
    {
      "@id": "https://academy.laioutr.com/en/lektionen/developer-content-collections-in-code#webpage",
      "@type": "WebPage",
      "name": "Academy Lesson",
      "url": "https://academy.laioutr.com/en/lektionen/developer-content-collections-in-code",
      "breadcrumb": {
        "@id": "https://academy.laioutr.com/en/lektionen/developer-content-collections-in-code#breadcrumb"
      },
      "isPartOf": {
        "@id": "https://academy.laioutr.com/#website"
      },
      "potentialAction": [
        {
          "@type": "ReadAction",
          "target": [
            "https://academy.laioutr.com/en/lektionen/developer-content-collections-in-code"
          ]
        }
      ]
    },
    {
      "@id": "https://academy.laioutr.com/en/lektionen/developer-content-collections-in-code#breadcrumb",
      "@type": "BreadcrumbList",
      "itemListElement": [
        {
          "@type": "ListItem",
          "name": "Home",
          "item": "https://academy.laioutr.com/en",
          "position": 1
        },
        {
          "@type": "ListItem",
          "name": "Agentic Developer",
          "item": "https://academy.laioutr.com/en/lernpfade/developer-learning-path",
          "position": 2
        },
        {
          "@type": "ListItem",
          "name": "Content collections in code",
          "item": "https://academy.laioutr.com/en/lektionen/developer-content-collections-in-code",
          "position": 3
        }
      ]
    }
  ]
}
```
