Image
Picks or uploads an image from a media library and stores its public path. The field needs a media library; without one it shows an error instead of a picker.
Add this field under fields in .pages.yml:
- name: cover
type: imageA saved value in YAML or Markdown front matter might look like:
cover: /uploads/cover.jpgFor a gallery:
- name: gallery
type: image
options:
multiple: { max: 12 }
unique: trueA saved value in YAML or Markdown front matter might look like:
gallery: [/uploads/a.jpg, /uploads/b.jpg]Previews in SP CMS may use temporary URLs; only the public path is saved. A saved path must be inside the field's media library, so links to images on other websites are rejected.