Workflow / Content Staging
Simple Workflow / Content Staging in available on multi items templates
-
publish status : draft / published
-
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"
}
}
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)
A full example can be found in the Articles template
Updated less than a minute ago