Skip to main content
Version: 2024.2

Area Editable


The area editable is similar to the areablock editable, the only difference is that the area bricks are not wrapped into a block element, and the editor cannot choose which area is used, this has to be done in the editable configuration in the template.


typestringID of the brick which should be used in this area
paramsarrayOptional Parameter see areablock for details
classstringA CSS class that is added to the surrounding container of this element in editmode


getElement($name)Document\EditableRetrieves an editable from within the actual area


{{ pimcore_area("myArea", {"type": "gallery-single-images"}) }}

Example with Parameters

{{ pimcore_area("myArea", {
type: "gallery-single-images",
params: {
"gallery-single-images": {
"param1": 123,
}) }}

Get the params in your brick:

{{ param1 }}

Accessing Data within an Area Element

Assuming your area uses a brick gallery-single-images which contains a gallery block (see CMS demo):

// load document
$document = \Pimcore\Model\Document\Page::getByPath('/en/basic-examples/galleries');

/** @var \Pimcore\Model\Document\Editable\Area $area */
$area = $document->getEditable('myArea');

/** @var \Pimcore\Model\Document\Editable\Block $block */
$block = $area->getElement('gallery');

See Block for an example how to get elements from a block editable.