rewrite or new template

How to configure and adapt Aimeos based shops as developer
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!
JackDarkWeb
Posts: 10
Joined: 10 May 2021, 05:35

rewrite or new template

Post by JackDarkWeb » 10 May 2021, 05:49

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

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

Re: rewrite or new template

Post by aimeos » 12 May 2021, 06:52

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
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

JackDarkWeb
Posts: 10
Joined: 10 May 2021, 05:35

Re: rewrite or new template

Post by JackDarkWeb » 13 May 2021, 13:04

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.

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

Re: rewrite or new template

Post by aimeos » 13 May 2021, 15:30

To clear the Aimeos content cache, use

Code: Select all

php artisan aimeos:clear
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
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply