Page 1 of 1

How to keep categories tree expanded?

Posted: 17 Jan 2016, 10:25
by abcdomino
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

Re: How to keep categories tree expanded?

Posted: 17 Jan 2016, 11:48
by aimeos
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

Re: How to keep categories tree expanded?

Posted: 18 Jan 2016, 14:56
by abcdomino
Thanks a lot, I will be trying...

Best Regards,
Dominik

Re: How to keep categories tree expanded?

Posted: 29 Jan 2016, 11:49
by joakim
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;
}