Translated Checkbox Status
The “Translated Checkbox Status” filter rule (package filter_checkbox) checks whether
the value of a translated checkbox attribute is equal to 1 (active). It is
functionally identical to the Checkbox Status filter rule, but is
designed for use with the Translated Checkbox
attribute type in multilingual MetaModels.
The translated checkbox status is evaluated language-specifically: the value of the translated checkbox is checked in the active language. This allows publication states to be controlled per language.
See also
For monolingual MetaModels, the filter rule Checkbox Status is available.
Installation
The filter rule is installed via the Contao Manager or Composer:
composer require metamodels/filter_checkbox
Settings when Creating the Filter Rule
The settings are identical to those of the Checkbox Status filter rule. The only difference is that the attribute type must be a Translated Checkbox.
Setting |
Description |
|---|---|
Type |
Selection of the filter rule type — here: “Translated Checkbox Status”. |
Enabled |
Enables or disables this filter rule. |
Comment |
Free text field for describing the purpose of this filter rule. |
Attribute |
The translated checkbox attribute whose value should be checked. |
URL parameter |
The key of the URL parameter for passing the filter value. Without input,
the column name of the attribute is used. With |
URL type for the parameter |
Defines whether the parameter is passed as a slug (friendly URL) or as a GET parameter (from MM 2.4) — see SEO |
Settings for the Frontend Widget
Identical to the settings of the Checkbox Status filter rule — the same options (URL parameter, mode, template, etc.) are available.
Matching Attributes
The “Translated Checkbox Status” filter rule is exclusively suitable for the following attribute: