How to keep categories tree expanded?

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!
abcdomino
Posts: 15
Joined: 28 Dec 2015, 22:58

How to keep categories tree expanded?

Post by abcdomino » 17 Jan 2016, 10:25

Another issue that I'm struggling for is how to keep categories tree (in the catalog filter) expanded when the site is being loaded?

Best regards,
Dominik

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

Re: How to keep categories tree expanded?

Post by aimeos » 17 Jan 2016, 11:48

abcdomino wrote:Another issue that I'm struggling for is how to keep categories tree (in the catalog filter) expanded when the site is being loaded?
You need to overwrite the Javascript function for the catalog filter tree in the theme (aimeos.js). The setupCategoryToggle() is one of the method of the AimeosCatalogFilter object which you have to overwrite:
https://aimeos.org/docs/Developers/Them ... Javascript
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

abcdomino
Posts: 15
Joined: 28 Dec 2015, 22:58

Re: How to keep categories tree expanded?

Post by abcdomino » 18 Jan 2016, 14:56

Thanks a lot, I will be trying...

Best Regards,
Dominik

joakim
Posts: 16
Joined: 28 Jan 2016, 09:38

Re: How to keep categories tree expanded?

Post by joakim » 29 Jan 2016, 11:49

Use CSS to show the menu initially:

Code: Select all

.catalog-filter-tree > ul {
	display: block;
}
Optionally hide the Categories header:

Code: Select all

.catalog-filter-tree > h2 {
	display: none;
}

Post Reply