Warning: You are browsing the documentation from version 4 to 10 of Pimcore. Please visit https://pimcore.com/docs/platform/ for the latest versions of Pimcore.
Version: Edit on GitHub

Checkbox Editable


Name Type Description
reload boolean Set to true to reload the page in editmode after changing the state.
label string a <label> which is added in the editmode
class string A CSS class that is added to the surrounding container of this element in editmode


Name Return Description
isChecked() boolean Get status of the checkbox.
isEmpty() boolean Whether the editable is empty or not (alias of isChecked())

Simple Example

{{ pimcore_checkbox('myCheckbox') }}

Advanced Example

Setting XYZ: {{ pimcore_checkbox('myCheckbox') }}

{% if pimcore_checkbox('myCheckbox').isChecked() %}
        {{ dump('do something') }}
{% endif %}