Skip to main content
Version: 2024.1

Embed Editable

Configuration

NameTypeDescription
widthstringWidth in the editmode
heightstringHeight in the editmode
classstringA CSS class that is added to the surrounding container of this element in editmode

Additionally you can use any configuration option of Embera

Methods

NameReturnDescription
isEmpty()booleanWhether the editable is empty or not
getData()stringGet the URL of the assigned resource

Example

{# Basic usage #}
{{ pimcore_embed("socialWidgets") }}

{# Advanced usage #}
{{ pimcore_embed("socialWidgets", { "width": 540 }) }}