Content Types

All content is stored in one of six content types. They all share a common data format (YAML/Markdown files), but each has unique characteristics to optimize and simplify the way you manage the content. For example, Pages automatically generate Navigation and Globals are made available in all of your templates.


Overview

All of your site’s content — everything created, edited, uploaded, published, and available to display somewhere on your site, lives in one of Statamic’s six Content Types:

  1. Pages
  2. Collections
  3. Globals
  4. Taxonomies
  5. Assets
  6. Users

The Lingo (container and child names)

Each content type is a container for any number of items. For instance, you can create any number of Collections — each with its own name, purpose, and data structure — that contain an unlimited number of Entries. This “belongs to” pattern exists in each Content Type, not unlike SAT Analogy Questions. Do you remember those? They were super annoying.

The individual items in each Content Type are (in most cases) represented by content files in a YAML Front-Loaded format. Each container and corresponding child type has their own pair of labels.

Content Type Child Type
Pages Page
Collection Entry
Global Set
Taxonomy Term
Asset Container Asset
Users User

Each Content Type has this stuff in common

Content Types are defined by their differences, but they share a whole lot of features and attributes. Let’s cover these first because they’re pretty important — and useful.

Custom Fields

The primary attribute that defines a Content Type is the ability to configure any number of Custom Fields (in a group called a fieldset) to model and structure your content however you see fit. Whether you want one giant text field or a hundred little granular fields and options, you’re doing it right.

Unique IDs

Each content type has it’s own method of ensure “uniqueness”, which lets you create relationships or simply fetch content by ID. Here are a couple of examples of how this is useful:

  • Relate a User with an Entry, thereby creating an author.
  • Relate a list of Entries with another Entry establishing related articles.
  • Relate a group of Assets with a Entry, creating a gallery.

The Types

Now let’s explore the differences between Content Types. Each has a distinct purpose and ability that makes them a hero in the world of content management.

Last modified on December 20, 2017