Edit on GitHub

Area Editable

General

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.

Configuration

Name Type Description
type string ID of the brick which should be used in this area
params array Optional Parameter see areablock for details
class string A CSS class that is added to the surrounding container of this element in editmode

Methods

Name Return Description
getElement($name) Tag Retrieves an editable from within the actual area

Example

<div>
    <?= $this->area("myArea", ["type" => "nameofbrick"]); ?>
</div>

Example with Parameters

<div>
    <?= $this->area("myArea", [
        "type" => "nameofbrick",
        "params" => [
            "nameofbrick" => [
                "param1" => 123
            ]
        ]
    ]); ?>
</div>

Get the params in your brick:

<div>
    <?= $this->param1; ?>
</div>