sw-cms-element-storefront

star 0

Das Storefront-Template eines Shopware-6 CMS-Elements: cms-element-<name>.html.twig, Zugriff auf element.data/ element.config, Block-/Slot-Rendering. Trigger: "CMS Element Storefront", "cms-element twig", "element.data template", "cms element rendern storefront", "slot template cms". Shopware 6.7.

zone1987 By zone1987 schedule Updated 6/11/2026

name: sw-cms-element-storefront description: > Das Storefront-Template eines Shopware-6 CMS-Elements: cms-element-.html.twig, Zugriff auf element.data/ element.config, Block-/Slot-Rendering. Trigger: "CMS Element Storefront", "cms-element twig", "element.data template", "cms element rendern storefront", "slot template cms". Shopware 6.7.

Shopware 6 — CMS-Element (Storefront)

Das Element wird im Storefront über ein Twig-Template gerendert, Pfad src/Resources/views/storefront/element/cms-element-ff-teaser.html.twig.

{% block element_ff_teaser %}
<div class="cms-element-ff-teaser">
    {% set product = element.data.product %}
    {% if product %}
        <a href="{{ seoUrl('frontend.detail.page', { productId: product.id }) }}">{{ product.translated.name }}</a>
    {% endif %}
</div>
{% endblock %}

element.data = Ergebnis des DataResolvers (sw-cms-data-resolver), element.config = Konfiguration. Template wird über den Element-Namen automatisch gefunden. Styling über Storefront-SCSS (shopware-storefront).

Install via CLI
npx skills add https://github.com/zone1987/claude-a-dev-team --skill sw-cms-element-storefront
Repository Details
star Stars 0
call_split Forks 0
navigation Branch main
article Path SKILL.md
More from Creator