[SOLVED] How to overwrite aimeos/ai-cms-grapesjs html templates on my extension

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!
alababdiy
Posts: 40
Joined: 30 Apr 2023, 12:46

[SOLVED] How to overwrite aimeos/ai-cms-grapesjs html templates on my extension

Post by alababdiy » 19 Oct 2023, 09:40

How to overwrite vendor/aimeos/ai-cms-grapesjs/templates/client/html/cms/page/cataloglist/list.php on my extension?

PHP: 8.2
env: Linux
Last edited by alababdiy on 07 Dec 2023, 10:47, edited 1 time in total.

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

Re: How to overwrite aimeos/ai-cms-grapesjs html templates on my extension

Post by aimeos » 20 Oct 2023, 07:28

Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

alababdiy
Posts: 40
Joined: 30 Apr 2023, 12:46

Re: How to overwrite aimeos/ai-cms-grapesjs html templates on my extension

Post by alababdiy » 22 Oct 2023, 08:33

BUT I am not able to overwrite Cataloglist/Standard.php:

Code: Select all

packages/{my_ext}/src/Client/Html/Cataloglist/Standard.php
Also, I tried :

Code: Select all

packages/{my_ext}/src/Client/Html/Cms/Page/Cataloglist/Standard.php

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

Re: How to overwrite aimeos/ai-cms-grapesjs html templates on my extension

Post by aimeos » 23 Oct 2023, 08:36

alababdiy wrote: 22 Oct 2023, 08:33 BUT I am not able to overwrite Cataloglist/Standard.php:

Code: Select all

packages/{my_ext}/src/Client/Html/Cms/Page/Cataloglist/Standard.php
You can't overwrite classes like templates. Instead, you have to give them another name (e.g. "Myproject") and configure using your new class using:

Code: Select all

client/html/cms/page/cataloglist/name = 'Myproject'
Check here how to add configuration for e.g. Laravel:
https://aimeos.org/docs/latest/laravel/ ... figuration
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply