Page 1 of 1

How to display the subcategory links of just one category in a column?

Posted: 24 Dec 2019, 18:03
by xarga
hi - I'm new to Aimeos and building an online store for bakery items where fast, easy access to products is important.

In the right hand column I want to display the food items in the "list" format and in the left hand column I want to permanently display the links to the subcategories of the Bakery products I'm offering - e.g Breads, Croissants, Cakes, Pies, Tarts etc. Clicking cakes for example will display display just cakes in the right column. I'd also like a link for "All Bakery".

I'd really appreciate some guidance on the what's the best way to achieve this? I've tried to manipulate the display of the dropdown menu but it doesn't function correctly. Also clicking the parent category "Bakery" in the breadcrumbs doesn't display any items.

Re: How to display the subcategory links of just one category in a column?

Posted: 26 Dec 2019, 12:02
by aimeos
You should create your categories including a category for all items, e.g.:
- All Bakery
- Breads
- Croissants
- ...

Then, you should overwrite the JS method to disable toggling:
https://github.com/aimeos/ai-client-htm ... 1445-L1450

Also, change the CSS to always display the categories:
https://github.com/aimeos/ai-client-htm ... #L514-L522

Re: How to display the subcategory links of just one category in a column?

Posted: 26 Mar 2020, 22:08
by xarga
Thanks - this worked perfectly. I then moved the tree into a menu that slides out from the left to save valuable space on mobile devices.