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

Textarea Editable


The textarea editable is very similar to the Input editable, the only difference is multi-line support.


Name Type Description
height integer Height of the textarea in pixel
htmlspecialchars boolean Set to false to get the raw value without HTML special chars like & (default: true)
nl2br boolean Set to true to get also breaks in frontend
placeholder string A placeholder that is displayed when the field is empty
width integer Width of the textarea in pixel
class string A CSS class that is added to the surrounding container of this element in editmode
required boolean set to true to make field value required for publish


Name Return Description
getData() array Get the value of the textarea
isEmpty() bool Whether the editable is empty or not.


<p class="product-description">
    {{ pimcore_textarea("product_description",{
        "nl2br": true,
        "height": 300,
        "placeholder": "Product Description"
    }) }}

In the editmode, you can see the textarea and the predefined placeholder.

Product description textarea - editmode