shopwareLabs / shopware6-phpstorm-plugin

62 stars 9 forks source link

Extend this block: Support for Admin Components #57

Open amenk opened 2 years ago

amenk commented 2 years ago

I tried extending a block vendor/shopware/administration/Resources/app/administration/src/app/component/structure/sw-search-bar/sw-search-bar.html.twig

Extends this block in other template directory

I get an error message:

Cannot determine view folder of currently opened file

There seems to be something special about that file as it is actually not in the view folder?

v0.0.25

shyim commented 2 years ago

It works currently only in Storefront as Administration doesn't have such fixed folder structure

iMiMWeis commented 2 years ago

It also seems to be broken for 3rd party plugins.

vendor/store.shopware.com/moorlmerchantfinder/src/Resources/views/plugin/moorl-merchant-finder/component/result-item-static-main.html.twig

shyim commented 2 years ago

@iMiMWeis Your issue is fixed with https://github.com/shopwareLabs/shopware6-phpstorm-plugin/commit/c8ca7485c178123a5bd4c5c4a0f14ca6d9b5269e

shyim commented 2 years ago

So its a big step forward as we can create components on the fly. So when extending a block, and we don't find a component, we can just create it.

Missing now: