selected catalog layout (grid/list) not saved
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!
selected catalog layout (grid/list) not saved
Hi
I customized two catalog layouts (-grid and -list) and updated in shop.php 'template-body-list' and 'template-body-grid'.
Now:
Thanks!
I customized two catalog layouts (-grid and -list) and updated in shop.php 'template-body-list' and 'template-body-grid'.
Now:
- on catalog list page: select list-layout (displayed in grid-layout first)
- go to product detail page
- go back to catalog list page: displayed in grid-layout (instead list-layout)
- on catalog list page: select list-layout (displayed in grid-layout first)
- go to another category page: displayed in grid-layout (instead list-layout)
Thanks!
Re: selected catalog layout (grid/list) not saved
That's true, the "l_type" parameter doesn't get added to the generated URLs at the moment. Think, we can change that by adding "l_" as parameter that should be passed to the link view helper.
But this doesn't mean, the list view will be always used. If you e.g. click on the basket and then back to a category, the "l_type" parameter won't be passed then as well. We also don't want so store the parameter in the session because this makes caching of the HTML impossible.
But this doesn't mean, the list view will be always used. If you e.g. click on the basket and then back to a category, the "l_type" parameter won't be passed then as well. We also don't want so store the parameter in the session because this makes caching of the HTML impossible.
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: selected catalog layout (grid/list) not saved
but according to https://aimeos.org/docs/2020.x/config/c ... ate-header
or as an alternative:
Would it be possible to save the layout setting as a cookie, for example?
= = =
I tried to add the "l_type" parameter in /catalog/lists/items-body-grid.php the but failed.
Could you please provide some tips how to solve it?
Thank you!
Doesn't that mean that a selected view layout should be displayed throughout the session?...The type of the view is determined by the "l_type" parameter (allowed characters for the types are a-z and 0-9), which is also stored in the session so users will keep the view during their visit...
or as an alternative:
Would it be possible to save the layout setting as a cookie, for example?
= = =
I tried to add the "l_type" parameter in /catalog/lists/items-body-grid.php the but failed.
Could you please provide some tips how to solve it?
Thank you!
Re: selected catalog layout (grid/list) not saved
We've tried to improve the situation in 2021.10.x-dev and keep the parameters at least while using the filter options. You can test yourself after executing:
Code: Select all
composer req aimeos/ai-client-html:2021.10.x-dev
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: selected catalog layout (grid/list) not saved
As I'm using 2020.10 I added your code changes from
https://github.com/aimeos/ai-client-htm ... 8774d20511 and https://github.com/aimeos/ai-client-htm ... 5fc6d78205 accordingly.
It works, thank you!
But - as you already mentioned - only while using the filter options; Not when clicking the breadcrumbs or when returning from a product detail page.
Wouldn't it be possible and also usefol to store the layout setting in the session or as a browser cookie?
thanks again!
https://github.com/aimeos/ai-client-htm ... 8774d20511 and https://github.com/aimeos/ai-client-htm ... 5fc6d78205 accordingly.
It works, thank you!
But - as you already mentioned - only while using the filter options; Not when clicking the breadcrumbs or when returning from a product detail page.
Wouldn't it be possible and also usefol to store the layout setting in the session or as a browser cookie?
thanks again!
Re: selected catalog layout (grid/list) not saved
Like said, this would make caching impossible because the output then depends on session or cookie content and the same URL returns different results.
Please also note that 2020.10 doesn't get updates for free any more (only with ELTS subscription):
- https://aimeos.org/roadmap
- https://aimeos.com/support#c428
Please also note that 2020.10 doesn't get updates for free any more (only with ELTS subscription):
- https://aimeos.org/roadmap
- https://aimeos.com/support#c428
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