Define Filter-Tree-Depth
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Define Filter-Tree-Depth
I would like to define the tree depth of
client/html/catalog/filter/tree/
so that by default no children will be returned.
Is there a way, like e.g. depth or deep or s.th. like this?
Thanks.
client/html/catalog/filter/tree/
so that by default no children will be returned.
Is there a way, like e.g. depth or deep or s.th. like this?
Thanks.
Re: Define Filter-Tree-Depth
Use this config setting:
https://aimeos.org/docs/latest/config/c ... evels-only
https://aimeos.org/docs/latest/config/c ... evels-only
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: Define Filter-Tree-Depth
Thank you.
In earlier versions, the default behaviour was:
Show main categories only, if no f_catid is given.
In version 2021, the whole tree is shown, not only the main categories.
In the file
/aimeos/ai-client-html/client/html/src/Client/Html/Catalog/Filter/Tree/Standard.php
the lines 257 + 258 read
I would like to have the old behaviour:
How can I achieve this?
In earlier versions, the default behaviour was:
Show main categories only, if no f_catid is given.
In version 2021, the whole tree is shown, not only the main categories.
In the file
/aimeos/ai-client-html/client/html/src/Client/Html/Catalog/Filter/Tree/Standard.php
the lines 257 + 258 read
Code: Select all
$catItems = map();
$catIds = [];
Code: Select all
$catItems = $cntl->getTree( \Aimeos\MW\Tree\Manager\Base::LEVEL_ONE )->toList();
$catIds = $catItems->keys()->toArray();
Re: Define Filter-Tree-Depth
Yes, thats because the value for the "Levels always" setting in the flexform of the catalog filter plugin. You should remove the value to get the old behavior.
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: Define Filter-Tree-Depth
Thank you.
I have inserted
in the file DistributionPackages/template/Resources/Private/Config/controller.php
The resulting behaviour is:
On the main catalogue-page all subcategories are shown, on a subcategory, only this subcategory is shown.
The second part is okay, but I want the subcategory only on a subcategory, not on the main starting catalogue-page.
I have inserted
Code: Select all
'frontend' => [
'catalog' => [
'levels-always' => null,
],
],
The resulting behaviour is:
On the main catalogue-page all subcategories are shown, on a subcategory, only this subcategory is shown.
The second part is okay, but I want the subcategory only on a subcategory, not on the main starting catalogue-page.