Ralf
Ralf

Reputation: 866

Shopware 6: Is it possible (atm) to override or better extend an existing element (twig file) via plugin?

I want to override or extend the element "image" ("..administration/src/module/sw-cms/elements/image"). Is it possible at the moment? First I want to extend or override the .../config/sw-cms-el-config-image.html.twig template, so I created the file in my plugin (MyPlugin/src/Resources/app/administration/src/module/sw-cms/elements/image/config/), but with no effect.

{% block sw_cms_element_image_config %}
    test...
{% endblock %}

Upvotes: 0

Views: 2110

Answers (1)

Rakowu
Rakowu

Reputation: 154

Your path is wrong. Twig blocks need to be in: MyPlugin/src/Resources/views/storefront (from here the sames tree like Shopware).

In App you put stuff like scss and js.

Upvotes: 0

Related Questions