swag-docs-bundle-example
swag-docs-bundle-example copied to clipboard
Overwriting tabs does not work
Hey,
Setup:
- dockware container: dockware/dev:6.3.5.1
- copied content from container and working on it via SFTP as described in docs
i followed your guides and tried to get successful with step 8: https://docs.shopware.com/en/shopware-platform-dev-en/how-to/indepth-guide-bundle/storefront#adding-the-bundle-itself
And here nothing seems to work anymore.
Because the overwriting of the original Storefront tabs.html.twig
seems not to happen no matter what i do.
The badge on top does appear but not the additional tab as the guide tells it should. Why does overwriting the index.html.twig
works fine but not the tabs.html.twig
? (Tried other things like headline
and that does also not work)
Not sure what the loading mechanisms are but the only way i could get it to work was to manually overwrite the tabs part in the index.html.twig
:
And load the a custom twig file (other naming) which does what the overwriting should do:
And now i see the additional tab:
Very confusing :O Any idea why it behaves like this or is this by design?
EDIT:
After further investigation I noticed that if i run bin/console cache:clear
the tabs.html.twig
will be loaded (but just once) if i change again i would again need to clear the cache.
This is not needed for the index.html.twig
.
Maybe a cache related error? At least this is really painful for development where we need to see fast changes.
Also I read that dockware/dev is not the correct setup for this? Is there a documentation on how to setup dockware correctly for plugin development?