Where to change logic of component?

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!
oliwin4
Posts: 12
Joined: 16 Aug 2022, 08:36

Where to change logic of component?

Post by oliwin4 » 21 Aug 2022, 14:23

I try to modify home page that contains from components:

Code: Select all

'catalog-home' => ['locale/select','basket/mini','catalog/tree','catalog/search', 'cms/page', 'catalog/filter' ]

Where to see how `cms/page` does works for home page? Where is logic of this component placed?

What if I need to change logic of

Code: Select all

cms/page
for home component? For exmaple change which blocks to show from cms/page

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

Re: Where to change logic of component?

Post by aimeos » 22 Aug 2022, 06:18

You can find the logic of the cms/page component here in these classes:
https://github.com/aimeos/ai-cms-grapes ... l/Cms/Page

If you want to overwrite the logic, extend from the class in your own extension and configure the new name of your class:
https://aimeos.org/docs/latest/frontend ... omponents/
or create a decorator if possible:
https://aimeos.org/docs/latest/frontend ... omponents/
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply