File formats
Pages CMS picks a format from the file extension, so you rarely need to set one. Set format on a collection or file only to override the guess.
Inferred formats
All formats
Front matter and the body
In front matter formats, each field maps to a front matter key, except a field named body, which maps to everything below the front matter:
fields:
- name: title
type: string
- name: body
type: rich-textFor non-standard delimiters, set delimiters, for example delimiters: "+++" or delimiters: ["<!--", "-->"].
If Pages CMS cannot read a collection file, the file remains in the list but some fields may be missing. The warning identifies affected files; after fixing them, select Refresh to check them again.
Source editing
Leave out fields to edit a file as source: useful for robots.txt, redirect rules or snippets.
- name: redirects
label: Redirects
type: file
path: public/_redirects
format: codeFiles with known code extensions open in the code editor automatically. Set format: code for extensionless files such as _redirects.
Keeping unknown keys
By default, saving a structured file writes only the keys your fields describe. If your schema covers only part of a file, set settings.content.merge: true to keep the rest.