What are the Slack Archives?
Itโs a history of our time together in the Slack Community! Thereโs a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.
Because this space is not active, you wonโt be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..
Hi everyone using marketplace b2c 202212.0 trying to override the Yves frontend template as explaine
Hi everyone
using marketplace b2c 202212.0
trying to override the Yves frontend template as explained here: https://docs.spryker.com/docs/scos/dev/front-end-development/yves/atomic-frontend/customizing-spryker-front-end.html#twig
I created a module but it's not overriding or extending it, example: page-layout-main.twig
By the documentation it should work on a custom module but it looks like nothing is happening.
When I do changes on core Yves module I can see changes in the html.
On project level module it doesn't work.
Let me know if you have any ideas as to why it's not working as the documentation says it would.
Thank you!
Comments
-
Hello Lauren,
Please check if the path is correct.
It should besrc/Pyz/Yves/ShopUi/Theme/default/templates/page-layout-main/page-layout-main.twig
Then run the command to clear the TWIG cache
docker/sdk console c:e
0 -
Hi Yuriy
Yes that works,
But I need to override it in a custom module
and based on the doc it should work
but it's not the case when I do that
folder structure is the same:
Ex;src/Pyz/Yves/MyModule/Theme/default/templates/page-layout-main/page-layout-main.twig
0 -
definitely ran this command many times:
docker/sdk console c:e
0 -
Most other modules extends the
page-layout-main
template from theShopUi
module.
In this case, youโll need to override them all to use a new custom module.0 -
E.g. to see your new template on the Home page you need to extend your module in the
src/Pyz/Yves/HomePage/Theme/default/views/home/home.twig
template via{% extends template('page-layout-main', 'MyModule') %}
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 76 Spryker News
- 929 Developer Corner
- 787 Spryker Development
- 89 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 35 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 26 Job Opportunities
- 3.2K ๐ Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 70 Spryker Safari Questions
- 50 Random