component creation

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
mahammadareef
Posts: 54
Joined: 14 Oct 2022, 11:54

component creation

Post by mahammadareef » 27 Oct 2022, 12:24

is it okay to create new components inside my theme extension folder,
source code inside <mytheme>/src/Client/html/
template file inside <mytheme>/templates/client/html/

it works, i wanted to know is this the exact method or we need to adopt some other method

and I wanted to know the difference between normal extension and theme extension, and which functionalities goes inside these according to aimeos development standards

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

Re: component creation

Post by aimeos » 28 Oct 2022, 09:50

Yes, you can add custom code also to Laravel theme extensions.
The difference is that in the Laravel theme extensions you can also overwrite Blade files which you can't in standard Aimeos extensions.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
mahammadareef
Posts: 54
Joined: 14 Oct 2022, 11:54

Re: component creation

Post by mahammadareef » 10 Nov 2022, 08:52

I created the new component additional/product slider for product sliding, now I want to use this component multiple times on the home page with some conditions like category-wise, I want to pass the category info from my blade file (home.blade.php)- how i can achieve this

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

Re: component creation

Post by aimeos » 11 Nov 2022, 06:04

Adding the same component multiple times at the same page with different parameters doesn't work because you can configure it only once.

Did you see the cataloglist block of the CMS module? It offers exactly what you want and that can be added multiple times within the same CMS content block with different category configuration.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
mahammadareef
Posts: 54
Joined: 14 Oct 2022, 11:54

Re: component creation

Post by mahammadareef » 11 Nov 2022, 09:42

yes I implemented this slider component by seeing cataloglist block of the CMS module, in which category is selected when the page is designed but in my case, i want it in my separate pages

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

Re: component creation

Post by aimeos » 12 Nov 2022, 05:04

You can also use the cms/page module in all of your own pages so it's easy to get that done.
If you want to create an own component, you have to implement something similar to the cataloglist block in the CMS module.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply