> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dc.ag/llms.txt
> Use this file to discover all available pages before exploring further.

# Collections

> Define the structure of a collection with fields, groups, and language links.

A collection is a structured content template: you define the fields and groups once, and afterwards you can create any number of entries following this schema. Typical examples: blog posts, job listings, news, glossaries, or contacts.

<Tip>
  You maintain the structure of a collection under **Templates → Collections**. The [entries](/docs/en/dynamic-content/user-guide/kollektionseintraege-erstellen) themselves are maintained via **Collections** in the sidebar.
</Tip>

## Creating a new collection

Open **Templates → Collections** and click **+ New**.

<Steps>
  <Step title="General">
    * **Code**: Unique technical identifier (no spaces, umlauts, or special characters)
    * **Description**: Display name for a better overview
    * **Show details**: Enables a detail page per entry (e.g. for blog posts with a "Read more" link)
    * **Show in all languages**: Makes the collection available across languages
  </Step>

  <Step title="Choose collection image">
    Select an icon for the collection. It is only used for the overview in the CMS and does not appear on the website.
  </Step>

  <Step title="Synchronization (optional)">
    In the synchronization section you can automatically reconcile entries with an external source: enable synchronization, choose a source, and set an interval. Optionally, you can control the generation via an AI prompt.
  </Step>

  <Step title="Save">
    Click **Save** or **Save and close**.
  </Step>
</Steps>

## Editing the structure

Select a collection and click **Edit**. The editing view contains several sections. At the top you can duplicate the collection via **Copy collection** or **Delete** it.

### Collection fields

Collection fields determine the input mask of the entries. Each field has a **Description**, a **Type**, and the **In overview** setting (Yes/No), which specifies whether the field appears in lists and previews.

Via **+ New** you select the field type from a tile overview. Two kinds:

* **Input field**: simple inputs such as text, rich text field, date, image, link, or option field
* **Sitepart**: full-fledged content types such as texts, image galleries, or article previews, which are maintained directly within the entry

Use **Move up** / **Move down** to change the order of the fields.

<Note>
  Golf guide example: Date (input field: date), Preview image (input field: image), Heading (input field: text), Short text (input field: rich text field), Details (sitepart: texts), Article preview (sitepart: article preview), Image gallery (sitepart: image galleries).
</Note>

### Collection groups

Groups categorize your entries. For each group you define:

| Field                 | Meaning                                                   |
| --------------------- | --------------------------------------------------------- |
| **Description**       | Name of the group                                         |
| **Color**             | Color coding                                              |
| **Active by default** | Whether the group is preselected for new entries (Yes/No) |

### hreflang links

Link the collection with its counterparts in other languages for correct hreflang markup. For each link you select a **Language** and a **Collection**.

### Additional sections

In the editing view you will also find the fields from the creation dialog (Code, Description, Show details, Collection image, Synchronization) as well as an **Info** section with the change data.

## Deleting a collection

Open the collection via **Edit** and click **Delete** at the top, or select it in the list and use **Delete** in the toolbar.

<Warning>
  Deleting a collection also removes all associated entries. This action cannot be undone.
</Warning>

## Displaying a collection on a page

For a collection to become visible on the website, you embed it on a page. To do so, open a page under **Structure → Pages**, create a new content element, and select the **Collection** tab.

<Info>
  For more information, see [Display collection](/docs/en/dynamic-content/user-guide/inhaltsarten/kollektionen-anzeigen) and [Page contents](/docs/en/dynamic-content/user-guide/seiteninhalte).
</Info>

## Related topics

<CardGroup cols={2}>
  <Card title="Creating collection entries" icon="square-plus" href="/docs/en/dynamic-content/user-guide/kollektionseintraege-erstellen">
    Create and maintain entries for an existing collection.
  </Card>

  <Card title="Display collection" icon="folder-open" href="/docs/en/dynamic-content/user-guide/inhaltsarten/kollektionen-anzeigen">
    Embed a collection on a page.
  </Card>
</CardGroup>
