SP CMSDocs

Start here

  • Introduction
  • How it works

Editing your site

  • Sign in
  • Edit content
  • Manage media
  • Edit translations
  • Invite collaborators
  • Run actions

Setting up a site

  • Set up a site
  • Configuration overview
  • Collections and files
    • Overview
    • File formats
    • Filenames
    • Collection views
  • Media
  • Localization
  • Components
  • Actions
  • Settings

Fields

  • Fields overview
  • String
  • Text
  • Rich text
  • Code
  • Number
  • Boolean
  • Date
  • Select
  • Reference
  • Image
  • File
  • Object
  • Block
  • UUID

Reference

  • Configuration reference
⌘K
Open SP CMS

Boolean


View as Markdown Open in ChatGPT Open in ClaudeCursor Open in Cursor
Number
Date

An on/off switch.

Add this field under fields in .pages.yml:

- name: draft
  type: boolean
  default: true

A saved value in YAML or Markdown front matter might look like:

draft: true

New entries start as false unless you set default. The field has no options.

NumberDate

On this page