Content modeling and custom types

Structure your content and documents for your writers

Renaud Bressand avatar Levi Gable avatar Nathan Lamelliere avatar
32 articles in this collection
Written by Renaud Bressand, Levi Gable, and Nathan Lamelliere
Structure your content

Introduction to Custom Type building

What are Custom Types and how to create and structure a new one (Singleton, repeater, builder, slices, etc.)
Renaud Bressand avatar
Written by Renaud Bressand
Updated over a week ago

Override the Default Document Name

How to override the default document name that appears on the document list page
Levi Gable avatar
Written by Levi Gable
Updated over a week ago

Document tab organization

Use tabs to organize the editor and give a better editing experience to your writers
Renaud Bressand avatar
Written by Renaud Bressand
Updated over a week ago

Slices - How to structure dynamic documents

Create fluid document to give more flexibility to your writer
Renaud Bressand avatar
Written by Renaud Bressand
Updated over a week ago

Creating a Navigation Menu

An example of modeling a 2-level navigation custom type
Nathan Lamelliere avatar
Written by Nathan Lamelliere
Updated this week

Adding anchor links

Insert a clickable table of contents that scrolls down to a specific section of the page along with URLs pointing to the section
Nathan Lamelliere avatar
Written by Nathan Lamelliere
Updated over a week ago

Setting up and retrieving hierarchical content

Here are 2 approaches for setting up a content hierarchy such as categories or parent pages
Nathan Lamelliere avatar
Written by Nathan Lamelliere
Updated over a week ago

Adding Custom Embed or HTML code

Here we present the options for adding custom embed or custom html code to your documents
Levi Gable avatar
Written by Levi Gable
Updated over a week ago

Reuse a Slice in Another Custom Type

How to add your slices to the existing slices library to use in other Custom Types
Levi Gable avatar
Written by Levi Gable
Updated over a week ago

Add Custom Styles to Rich Text

How to use labels to add style options in your Rich Text fields
Levi Gable avatar
Written by Levi Gable
Updated over a week ago
Field Reference

Color

A color field that corresponds to a hex color value
Levi Gable avatar
Written by Levi Gable
Updated over a week ago

Content Relationship

Link to another document in your Prismic repository
Levi Gable avatar
Written by Levi Gable
Updated over a week ago

Date

Date field that represents a calendar day
Levi Gable avatar
Written by Levi Gable
Updated over a week ago

Embed

An embed field where content writers can paste an oEmbed url for simple embed integration
Levi Gable avatar
Written by Levi Gable
Updated over a week ago

GeoPoint

A geopoint field corresponding to geolocation coordinates
Levi Gable avatar
Written by Levi Gable
Updated over a week ago

Group

A group field that allows other content fields to be grouped together in repeatable sections
Levi Gable avatar
Written by Levi Gable
Updated over a week ago

Image

Image field that can be configured with size constraints and for responsive images
Renaud Bressand avatar
Written by Renaud Bressand
Updated over a week ago

Key Text

A key text field corresponding to a single string value
Levi Gable avatar
Written by Levi Gable
Updated over a week ago

Link

Link to the web, internal content, or a media library file.
Renaud Bressand avatar
Written by Renaud Bressand
Updated over a week ago

Link to Media

Link to an asset in your media library
Levi Gable avatar
Written by Levi Gable
Updated over a week ago

Number

A number field with optional max and min values
Levi Gable avatar
Written by Levi Gable
Updated over a week ago

Rich Text

Offer a rich text editor with formatting options
Renaud Bressand avatar
Written by Renaud Bressand
Updated over a week ago

Select

A select field that provides content writers a dropdown list of options to choose from
Levi Gable avatar
Written by Levi Gable
Updated over a week ago

Slices

Define dynamic zones to allow your content writers to compose richer page layouts.
Renaud Bressand avatar
Written by Renaud Bressand
Updated over a week ago

Timestamp

Timestamp field that corresponds to a date and a time
Levi Gable avatar
Written by Levi Gable
Updated over a week ago

Title

A text field for your page titles
Levi Gable avatar
Written by Levi Gable
Updated over a week ago

UID

Unique identifier to facilitate your query and structure your URLs.
Renaud Bressand avatar
Written by Renaud Bressand
Updated over a week ago