Category menu - opened as stanadard

Questions around the TYPO3 integration and plugins
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!
bouuman
Posts: 25
Joined: 17 Feb 2020, 18:37

Category menu - opened as stanadard

Post by bouuman » 24 May 2020, 09:20

How can i configure the Categorys opened as standard, so the users dont have to click the text "Category" to make them visible as standard? Is that possible? :
Category.PNG
Category.PNG (35.12 KiB) Viewed 3308 times

User avatar
aimeos
Administrator
Posts: 7881
Joined: 01 Jan 1970, 00:00

Re: Category menu - opened as stanadard

Post by aimeos » 25 May 2020, 17:20

Yes, set the number of category levels you want to display using this configuration: https://aimeos.org/docs/Configuration/C ... els-always
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

bouuman
Posts: 25
Joined: 17 Feb 2020, 18:37

Re: Category menu - opened as stanadard

Post by bouuman » 25 May 2020, 19:16

aimeos wrote: 25 May 2020, 17:20 Yes, set the number of category levels you want to display using this configuration: https://aimeos.org/docs/Configuration/C ... els-always
i used this in my template setup :
plugin.tx_aimeos.settings.client.html.catalog.filter.tree.levels-always = 1

but nothing happens, or how it have to be configured, can you make a example?

User avatar
aimeos
Administrator
Posts: 7881
Joined: 01 Jan 1970, 00:00

Re: Category menu - opened as stanadard

Post by aimeos » 27 May 2020, 08:30

In TYPO3, the TS settings are overwritten by the Flexform settings, so you have to go to the plugin configuration of the catalog filter plugin and add the value (2 or 3, depending on the levels of your tree) to the "levels always" field in the flexform.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

bouuman
Posts: 25
Joined: 17 Feb 2020, 18:37

Re: Category menu - opened as stanadard

Post by bouuman » 27 May 2020, 17:38

aimeos wrote: 27 May 2020, 08:30 In TYPO3, the TS settings are overwritten by the Flexform settings, so you have to go to the plugin configuration of the catalog filter plugin and add the value (2 or 3, depending on the levels of your tree) to the "levels always" field in the flexform.
whatever i enter in the "Always display these category levels" field, 0, 1, 2 or 3, nothing happens... i tryed clear cache / delete typo temp folder but Categorys still closed. Or i misunderstood how to configure it?
Catalog filter.png
Catalog filter.png (61.9 KiB) Viewed 3262 times

User avatar
aimeos
Administrator
Posts: 7881
Joined: 01 Jan 1970, 00:00

Re: Category menu - opened as stanadard

Post by aimeos » 29 May 2020, 20:26

We are still investigating the issue, please stay tuned :-)
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
aimeos
Administrator
Posts: 7881
Joined: 01 Jan 1970, 00:00

Re: Category menu - opened as stanadard

Post by aimeos » 02 Jun 2020, 21:35

Here's a new pre-release which fixes the level-always configuration option:
https://aimeos.org/fileadmin/download/a ... 3-pre5.zip
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

bouuman
Posts: 25
Joined: 17 Feb 2020, 18:37

Re: Category menu - opened as stanadard

Post by bouuman » 03 Jun 2020, 16:05

aimeos wrote: 02 Jun 2020, 21:35 Here's a new pre-release which fixes the level-always configuration option:
https://aimeos.org/fileadmin/download/a ... 3-pre5.zip
installed the new release
didnt worked for me, what have i exactly to do, tryed 1, 2 and 3 but nothing (cleared cache / temp)
category_display.PNG
category_display.PNG (38.65 KiB) Viewed 3180 times

User avatar
aimeos
Administrator
Posts: 7881
Joined: 01 Jan 1970, 00:00

Re: Category menu - opened as stanadard

Post by aimeos » 03 Jun 2020, 17:10

We've added this: https://github.com/aimeos/ai-client-htm ... 327fd4222f
Then, this method will add the expression for limiting the categories to the configured level:
https://github.com/aimeos/ai-controller ... #L215-L285

Can you please see what happens in your case in the method and if the expression is added:
https://github.com/aimeos/ai-controller ... d.php#L254
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

bouuman
Posts: 25
Joined: 17 Feb 2020, 18:37

Re: Category menu - opened as stanadard

Post by bouuman » 03 Jun 2020, 18:44

aimeos wrote: 03 Jun 2020, 17:10 We've added this: https://github.com/aimeos/ai-client-htm ... 327fd4222f
Then, this method will add the expression for limiting the categories to the configured level:
https://github.com/aimeos/ai-controller ... #L215-L285

Can you please see what happens in your case in the method and if the expression is added:
https://github.com/aimeos/ai-controller ... d.php#L254
1.) this file was OK:
httpdocs / typo3conf / ext / aimeos / Resources / Private / Extensions / ai-controller-frontend / controller / frontend / src / Controller / Frontend / Catalog / Standard.php

2.) This part didnt changed after update:
TreeStandard.png
TreeStandard.png (55.97 KiB) Viewed 3174 times
i adjusted it to your change:
$view->treeCatalogPath = $catItems;
$view->treeCatalogTree = $cntl->visible( $catItems->keys()->toArray() ?: [$startid] )->getTree();
$view->treeFilterParams = $this->getClientParams( $view->param(), ['f'] );

... cleared cache / temp folder... still nothing, i have the feeling that the configuration "Always display these category levels " is dead somehow.

3.) sorry i have no idea how to debug it and check if there is something wrong.

Post Reply