Component filtering

Contents

Optionally limit which pages a component can be placed on.

Usage

Some components are only relevant for selected content types. To limit which pages a component may be placed on, add an allow configuration to it:

Limit part to specific content types
kind: "Part"
title: "My article part"
form: []
allowOnContentType:
  - "my.cool.app:my-cool-type"
  - "${app}:article*"

You may also use regular expressions:

Advanced example using regular expression
kind: "Part"
title: "My article part"
form: []
allowOnContentType:
  - "^(?!.*[:]post$).*$"
This restriction is only implemented in Content Studio, and will not be enforced by the API.

Contents

Contents