Author API Initialization
allowed_workflow_states
Specifies the workflow states that you want to use.
You would want to use to choose a subset of workflow states that are available for authors.
The Item list will be automatically filtered by the provided workflow states.
Items in these states can be opened and transitioned to linked states. Linked states will be shown regardless of values in allowed_workflow_states
.
However, if an Item is in a state not present in allowed_workflow_states
, that Item can still be viewed and edited, but its state can not be changed.
Examples
// Allowed workflow states based on your specific workflow
var initializationOptions = {
"config": {
"global": {
"workflow": {
"item": {
"allowed_workflow_states": [
"archived",
"draft",
"review",
"published"
]
}
}
}
}
};
Values
Attribute path config.global.workflow.item.allowed_workflow_states
Type array[string]