Workflow / Content Staging

Simple Workflow / Content Staging in available on multi items templates

  1. publish status : draft / published

Please note that you must have at least a value "published" (by convention) in your schema for this to work. You cannot translate this value, but you can translate it's label in the option file.

  1. 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 with specific names present in schema.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)