Skip to main content
Version: 2023.3

Checkbox Editable

Configuration

NameTypeDescription
reloadbooleanSet to true to reload the page in editmode after changing the state.
labelstringa <label> which is added in the editmode
classstringA CSS class that is added to the surrounding container of this element in editmode

Methods

NameReturnDescription
isChecked()booleanGet status of the checkbox.
isEmpty()booleanWhether 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() %}
<div>
{{ dump('do something') }}
</div>
{% endif %}