How to overvrwrite base.blade.php and blade template in view folder by extension.

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
User avatar
AleksandarJovanovic
Posts: 26
Joined: 01 Jun 2022, 21:26

How to overvrwrite base.blade.php and blade template in view folder by extension.

Post by AleksandarJovanovic » 21 Jan 2024, 21:45

Aimeos version 2023.10
Php: 8.1
Linux

Dear,
I create own extansion to change some files in project. But i want to use default theme and edit some file from extension not new theme. I create view folder in my extension and copy file from but cant see changes on frontend. I know to must create theme from extension builder and that works, but can i edit from extenson to avoid new theme?
Best regards

User avatar
aimeos
Administrator
Posts: 7894
Joined: 01 Jan 1970, 00:00

Re: How to overvrwrite base.blade.php and blade template in view folder by extension.

Post by aimeos » 23 Jan 2024, 07:47

You don't have to create a new theme to overwrite the base.blade.php. Just copy the file from the ./vendor/aimeos/aimeos-laravel/views/base.blade.php to the ./resources/views/vendor/shop/ directory of your Laravel application:
https://aimeos.org/docs/latest/laravel/ ... -templates
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply