ContentTypeFilter - form item

Contents

Select one or more of the available content types.

Usage

- type: "ContentTypeFilter"
  name: "my_cty_filter"
  label: "My CTYFilter"
  occurrences:
    min: 0
    max: 0
  context: true  (1)
1 context true limits the list of content types to the applications configured for the current site. Default is false.

Output

Value type: String — not included in _alltext

The stored value is the fully qualified content type name.

{
  "my_cty_filter": "com.example.myapp:article"
}
Multiple selections
{
  "my_cty_filter": [
    "com.example.myapp:article",
    "base:folder"
  ]
}

Contents

Contents