create new component
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!
create new component
I worked to build a new component .
The component functionality
Is showing some of category in all page in website with own design.
I created a class in myshop\packages\myextension\src\Client\Html\Catalog\Mycomponent\Standard.
I created a template in myshop\packages\myextension\templates\client\html\catalog\mycomponent\mycomponent-body.php.
In mycomponent-body.php file build a html structure .
My problem is can't get any change on frontend.
Can you please provide some hint to do this?
The component functionality
Is showing some of category in all page in website with own design.
I created a class in myshop\packages\myextension\src\Client\Html\Catalog\Mycomponent\Standard.
I created a template in myshop\packages\myextension\templates\client\html\catalog\mycomponent\mycomponent-body.php.
In mycomponent-body.php file build a html structure .
My problem is can't get any change on frontend.
Can you please provide some hint to do this?
Re: create new component
Hi
If you want to show this component in all pages of your project, you can solve this by writing logic in your project framework files (Laravel, Symfony) using 'Aimeos' ORM structure inside file.
If you want to show this component in all pages of your project, you can solve this by writing logic in your project framework files (Laravel, Symfony) using 'Aimeos' ORM structure inside file.
Re: create new component
Guess, you are using Laravel, don't you?
To add a new component in Laravel, add it to the entries in the "pages" section of your ./config/shop.php file where you want them to appear (name is "catalog/mycomponent" in your case). Then, adapt the Blade templates of that pages and add the output of "aibody" and "aiheader" like in this template:
https://github.com/aimeos/aimeos-larave ... .blade.php
To add a new component in Laravel, add it to the entries in the "pages" section of your ./config/shop.php file where you want them to appear (name is "catalog/mycomponent" in your case). Then, adapt the Blade templates of that pages and add the output of "aibody" and "aiheader" like in this template:
https://github.com/aimeos/aimeos-larave ... .blade.php
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
Re: create new component
Thanks for this replies @aimeos @Gagik
I have try as per your instructions and it worked.
I have try as per your instructions and it worked.