about creating the new components
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!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
- mahammadareef
- Posts: 54
- Joined: 14 Oct 2022, 11:54
about creating the new components
hey, i tried creating the new component by -> templates\client\html\<nameofthecomponent> and its classes and source code inside -> \src\Client\Html\<ComponentName> but its not working , i know how to crearte sub parts inside components folder and its working .
is it required to register the new components in aimeos?
can you help me with detailed steps and examples to create a new component using EXTRAUSECOMPONENT as the name of a component
is it required to register the new components in aimeos?
can you help me with detailed steps and examples to create a new component using EXTRAUSECOMPONENT as the name of a component
Re: about creating the new components
You have to add your new component to one of the page types in your configuration:
https://github.com/aimeos/aimeos-larave ... hp#L27-L41
Then, the body and header methods are called by the controller:
https://github.com/aimeos/aimeos-larave ... hp#L58-L62
Finally, you have to add the output of the body/header methods to the Blade template. Copy the Blade template to ./resources/views/vendor/shop/catalog/detail.blade.php and add the output of the body/header methods there:
- https://aimeos.org/docs/latest/laravel/ ... -templates
- https://github.com/aimeos/aimeos-larave ... .blade.php
https://github.com/aimeos/aimeos-larave ... hp#L27-L41
Then, the body and header methods are called by the controller:
https://github.com/aimeos/aimeos-larave ... hp#L58-L62
Finally, you have to add the output of the body/header methods to the Blade template. Copy the Blade template to ./resources/views/vendor/shop/catalog/detail.blade.php and add the output of the body/header methods there:
- https://aimeos.org/docs/latest/laravel/ ... -templates
- 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