Page fields
Learn about fields and how to use them when creating pages.
Fields are the building blocks of your content in Prismic. Each field captures a specific type of information, like text, images, dates, or links. When you create a page, you fill in these fields to build your content.
Prismic supports many types of content fields, including text (with or without formatting), images, numbers, tables, relationships, and more. Your developer uses these fields to build page types and slices.
For example, an Author page type might include:
- Name: A text field
- Description: A rich text field
- Homepage: A link field
Learn how to use each type of field in the Page Builder below.
Boolean field
An on/off toggle that lets you choose between true or false options. This is useful for features like “Featured content” or “Show in navigation.”
A boolean field in the Page Builder.
Color field
A color picker that lets you select a color in hex format (e.g. #FFFFFF
for white).
A color field in the Page Builder.
Content relationship field
Link pages to form relationships, like connecting a blog post to its author or linking a product to its category.
A content relationship field in the Page Builder.
Depending on your website’s configuration, a content relationship field might limit the pages you can select to a single page type. For example, an author field may only allow Author pages.
Date field
A calendar picker for selecting dates without a specific time.
A date field in the Page Builder.
Embed field
Embed videos, songs, tweets, or other content from external platforms like YouTube, Spotify, or Twitter. Paste the URL and the content will be embedded.
An embed field in the Page Builder.
This field works with any platform that supports oEmbed.
Geopoint field
Store geographical coordinates for location-based content. You can also paste a Goole Maps URL to automatically extract the coordinates.
A geopoint field in the Page Builder.
Image field
Upload an image or select one from your repository’s media library.
An image field in the Page Builder.
Images can be cropped by clicking the crop button in the field’s top-right corner.
Be sure to set alternative text for each image to aid visitors with accessibility needs.
Integration field
Connect to third-party services and platforms for specialized content. The available integrations depend on what your developer has configured for your website.
An integration field in the Page Builder.
Link field
Link to pages within your website, external websites, or media files.
A link field in the Page Builder.
Link to Media field
A specialized link field that connects directly to media files in your repository, such as PDFs, documents, or downloadable files.
A link to media field in the Page Builder.
Number field
Enter numeric values, whether whole numbers (like 5 or 100) or decimals (like 3.14 or 99.99).
A number field in the Page Builder.
Repeatable group field
A group of fields that can be repeated as many times as needed. This field is often used for collections of content, like an image gallery with multiple images and captions.
A repeatable group field in the Page Builder.
Rich text field
A text field that allows formatting like headings, paragraphs, images, and bold text. Rich text fields are usually used for large bodies of content.
A rich text field in the Page Builder.
The rich text editor toolbar provides essential formatting options:
- Bold and italic: Emphasize important words and phrases
- Headers: Create clear content hierarchy with H1, H2, H3, etc. headings
- Paragraphs: Organize your content into readable sections
- Lists: Organize information with bulleted or numbered lists
- Links: Connect your content to internal or external resources
- Images: Upload an image or select one from your repository’s media library
Your developer determines which formatting options are available.
Select field
A dropdown menu with predefined options set up by your developer. Common uses include categories, priority levels, or status options.
A select field in the Page Builder.
Table field
Create structured data tables with rows and columns. You can add and remove rows and columns as needed, and format the content within each cell.
A table field in the Page Builder.
Text field
Text field allows you to enter plain text without any formatting. It’s perfect for simple content like titles, names, or short descriptions.
A text field in the Page Builder.
Text fields are ideal for content that doesn’t need bold, italics, or other formatting. For formatted content, use a rich text field instead.
Timestamp field
A date and time picker that captures both the date and the exact time.
A timestamp field in the Page Builder.
UID field
Pages often contain a UID (unique identifier) field to set the page’s URL.
The UID field has these characteristics:
- The value must be unique to the page type and locale.
- The value must be lowercase and cannot contain spaces. For example,
about-us
. - The value cannot contain special characters, except hyphens (
-
) and underscores (_
).
The field will populate automatically using the page’s content if the field is left empty.