/shop make list view default view
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!
/shop make list view default view
Hi!
Is there a configuration option to make list view the default view on /shop
Thanks,
samvara.
Is there a configuration option to make list view the default view on /shop
Thanks,
samvara.
Re: /shop make list view default view
The simplest way is to add a redirect to your ./routes/web.php file:
The better option is to add the list component to the home page in ./config/shop.php:
Additionally, you have to overwrite the catalog list view template using:
Code: Select all
Route::get('/', function () {
return redirect(airoute('aimeos_shop_list'));
});
Code: Select all
'page' => [
// Docs: https://aimeos.org/docs/latest/laravel/extend/#adapt-pages
'catalog-home' => ['locale/select','basket/mini','catalog/filter','catalog/tree','catalog/search','catalog/price','catalog/supplier','catalog/attribute','catalog/session','catalog/stage','catalog/lists' ],
],
Code: Select all
mkdir -p resources/views/vendor/shop/catalog/
cp ./vendor/aimeos/aimeos-laravel/views/catalog/list.blade.php resources/views/vendor/shop/catalog/home.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