Pages CMS
  • GitHub GitHub
  • Discord Discord

Getting started

  • Introduction
  • Quick start
  • How it works
  • Plans and billing

Configuration

  • Configuration overview
  • Content
    • Collections and files
    • 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

Guides

  • Edit content
  • Manage media
  • Edit translations
  • Run actions
  • Invite collaborators
  • Auto-configure
  • Roles and permissions
  • Cloud storage

Self-hosting

  • Run locally
  • Deploy with Node.js
  • Deploy to Cloudflare Workers
  • Deploy to Vercel
  • Deploy to Netlify
  • GitHub App
  • Environment variables
  • Upgrading

Extending

  • Plugins
  • Create a custom field
  • Custom field API

API and MCP

  • REST API
  • MCP
⌘K
Open app

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

No options.

NumberDate

On this page