rewrite or new template
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
-
- Posts: 10
- Joined: 10 May 2021, 05:35
rewrite or new template
Hello community
This is my first day with aimeos in laravel. After the installation and configuration and in my browser everything works perfectly. But my project that I want to work on has a completely different homepage than the default page of aimeos. As usual with laravel I did everything in the views folder which is in the resources folder.
How can I proceed ? please help me
This is my first day with aimeos in laravel. After the installation and configuration and in my browser everything works perfectly. But my project that I want to work on has a completely different homepage than the default page of aimeos. As usual with laravel I did everything in the views folder which is in the resources folder.
How can I proceed ? please help me
Re: rewrite or new template
The base HTML template is in the ./resources/views/app.blade.php file. Then, you should read how to adapt the Aimeos HTML client templates:
https://aimeos.org/docs/latest/frontend ... templates/
On the homepage, usually the catalog/home component is used:
https://github.com/aimeos/ai-client-htm ... talog/home
You can add or remove components on the home page by configuration:
https://github.com/aimeos/aimeos-larave ... op.php#L31
https://aimeos.org/docs/latest/frontend ... templates/
On the homepage, usually the catalog/home component is used:
https://github.com/aimeos/ai-client-htm ... talog/home
You can add or remove components on the home page by configuration:
https://github.com/aimeos/aimeos-larave ... op.php#L31
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
-
- Posts: 10
- Joined: 10 May 2021, 05:35
Re: rewrite or new template
Hi,
I am very happy for your answer and I thank you. I made some text changes in the file(ai-client-html/client/html/templates/catalog/home/body-standard.php/) but I don't see the change on the screen and also I tried to clear the caches and views.
I am very happy for your answer and I thank you. I made some text changes in the file(ai-client-html/client/html/templates/catalog/home/body-standard.php/) but I don't see the change on the screen and also I tried to clear the caches and views.
Re: rewrite or new template
To clear the Aimeos content cache, use
During development, it's best to disable caching:
https://github.com/aimeos/aimeos-laravel#hints
Also, never overwrite the original templates as your changes will be lost as soon as a new version is installed. Instead, create your own extension and copy the templates you want to overwrite there:
https://aimeos.org/docs/latest/frontend ... templates/
There's an extension generator available:
https://aimeos.org/extensions
Code: Select all
php artisan aimeos:clear
https://github.com/aimeos/aimeos-laravel#hints
Also, never overwrite the original templates as your changes will be lost as soon as a new version is installed. Instead, create your own extension and copy the templates you want to overwrite there:
https://aimeos.org/docs/latest/frontend ... templates/
There's an extension generator available:
https://aimeos.org/extensions
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star