Custom Home Page
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!
-
- Posts: 3
- Joined: 09 Aug 2022, 12:34
Custom Home Page
Hi there!
I am starting out with a new Aimeos project. Our customer has an existing laravel project for the website and wants to integrate the aimeos shop. They requested help with building a custom landing page for the shop that shows the newest 4 items instead of the standard all items list view.
What would be a good way to go about this? Is there any way to further filter the $aibody['catalog/lists'] variable in the blade file? Then I could simply overwrite the view. Or do I need to add a custom extension for something like this?
I am starting out with a new Aimeos project. Our customer has an existing laravel project for the website and wants to integrate the aimeos shop. They requested help with building a custom landing page for the shop that shows the newest 4 items instead of the standard all items list view.
What would be a good way to go about this? Is there any way to further filter the $aibody['catalog/lists'] variable in the blade file? Then I could simply overwrite the view. Or do I need to add a custom extension for something like this?
Re: Custom Home Page
The first option is using the aimeos/ai-cms-grapesjs extension, where editors can add custom product slider to the home page and select from which category these product should be displayed:
https://github.com/aimeos/ai-cms-grapesjs
The second option is to add the standard catalog/lists component and configure a default sorting of "-ctime" (and a default category ID if required):
- Default sorting: https://aimeos.org/docs/2022.x/config/c ... ists/#sort
- Default category: https://aimeos.org/docs/2022.x/config/c ... id-default
https://github.com/aimeos/ai-cms-grapesjs
The second option is to add the standard catalog/lists component and configure a default sorting of "-ctime" (and a default category ID if required):
- Default sorting: https://aimeos.org/docs/2022.x/config/c ... ists/#sort
- Default category: https://aimeos.org/docs/2022.x/config/c ... id-default
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
-
- Posts: 3
- Joined: 09 Aug 2022, 12:34
Re: Custom Home Page
Can the configurations be set for only a certain view or only globally in the config/shop.php? Our client wants the newest 4 items on the landing page and my idea was to replace the blade file, but if i change the configuration of the lists component it affects the entire shop right?
Thanks for your help!
Thanks for your help!
Re: Custom Home Page
This is global only. If you want different product lists at different pages, you should use the CMS package which offers placing product lists by the editor that depend on the settings added for the product list in the CMS module.
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