This documentation is for a version that has reached its End Of Life. Such versions are no longer supported and don't receive security updates. Consider updating to a newer version.
SesSelection¶
This field type stores a single selection choice.
The SesSelection field type is configured in a YAML file, unlike the Selection field type. This way, you can set up SiteAccess-specific selection field types.
The field type must be configured per attribute:
1 2 3 4 5 6 7 |
|
The translation_context
key, which identifies the context used for translating the labels, is optional.
To add a SesSelection field to a content type, make sure the field's identifier is the same as the configuration key (in the example above, news_type
).