sw_extends vs extends

Hi everyone!

I am trying to create my own template

I created MyTheme/src/Resources/views/storefront/base.html.twig (It works…)

I am trying to overwrite the product page
MyTheme/src/Resources/views/storefront/page/product-detail/index.html.twig

But with {% sw_extends ‘@MyTheme/storefront/base.html.twig’ %} in MyTheme/src/Resources/views/storefront/page/product-detail/index.html.twig file

I get {% sw_extends ‘@Storefront/storefront/base.html.twig’ %}

but if I replace “sw_extends” with “extends” it works…

Shouldn’t “sw_extends” and “extends” have the same behavior?

Hi,

for everyone reading this later:

https://issues.shopware.com/issues/NEXT-7517
https://github.com/shopware/platform/issues/614

“Currently the sw_extends looks for the next inheritance chain entry which is queued after your “MyTheme”. However, this algorithm does not seem to consider if the extends is not the same template as the loaded file.”

Kind regards,
Tim

1 „Gefällt mir“