These docs are for v3.5. Click to read the latest docs for v5.0.

Workflow / Content Staging

Simple Workflow / Content Staging in available on multi items templates

  1. publish status : draft / published

  2. start publish date / end publish date

The idea is : when the item is not published, you can only see it when you are in edit mode.

To make it works,you need only to have the fields whith specific names present in shema.json

Example of schema and options :

"publishstartdate": {
  "title": "Publish Start Date",
  "required": true,
  "default": "today"
},
"publishenddate": {
  "title": "Publish End Date",
  "required": true,
  "default": "2099-12-31"
},
"publishstatus": {
  "title": "Status",
  "enum": [ "draft", "published" ],
  "required": true,
  "default": "draft"
}
"publishstartdate": {
  "type": "date",
  "picker": {
    "format": "DD/MM/YYYY",
    "minDate": "2000-01-01",
    "maxDate": "2099-12-31",
    "locale": "nl"
  }
},
"publishenddate": {
  "type": "date",
  "picker": {
    "format": "DD/MM/YYYY",
    "minDate": "2000-01-01",
    "maxDate": "2099-12-31",
    "locale": "nl"
  }
}

A full example can be found in the Articles template

📘

For this to work there are 2 conditions.

A. You must use a Multi-item template.
B. You should set "index": true in the root of your manifest.

When you add Workflow to existing Data, choose in the module action dropdown:
Filter Settings > Re-index Module.
(you will not see this if index is not set to true)