Auto-Expand Filters/Attribute Tree?

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!
superscotty19
Posts: 95
Joined: 13 May 2019, 08:09

Auto-Expand Filters/Attribute Tree?

Post by superscotty19 » 27 Jun 2019, 00:20

Hi,

TYPO3 8.7
Aimeos 18.10

I'm putting together the frontend of a site now that the catalogue is built, and I'm struggling with the filters. I've created a "Catalog attributes" content element and chosen a random attribute, as well as the mandatory pointers to List, Count, and JSON pages. The attributes filter correctly shows up on the page. However, the word "Filter" appears and I have to click it in order to actually *see* the filter. Then, I need to click *again* on the attribute to have it expand and show me the attributes I want.

So, my question is, is there a way to just have the "Filter" title and attributes tree auto-expand?

I see in the CSS there's a div/class:

Code: Select all

<div class="attribute-lists" style="display: none;">
... so I guess I could just override the CSS in my own external CSS file, but I was hoping there was a less forceful way to do it; perhaps a TypoScript setting?

Thanks as always,
-Scott.

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

Re: Auto-Expand Filters/Attribute Tree?

Post by aimeos » 27 Jun 2019, 09:29

This is all CSS/JS you can overwrite, i.e. https://github.com/aimeos/ai-client-htm ... s.js#L1054 ff.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

superscotty19
Posts: 95
Joined: 13 May 2019, 08:09

Re: Auto-Expand Filters/Attribute Tree?

Post by superscotty19 » 27 Jun 2019, 09:48

Hi,

Thanks for the confirmation, BUT, I've been doing some overrides and I noticed a key factor relating to this thread: auto-expanding will break the mobile version! It would be nice to have it auto-expand for desktop - but still have the option to compress - and then compress by default on mobile. ...... I just have no idea how to accomplish this override.

-S.

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

Re: Auto-Expand Filters/Attribute Tree?

Post by aimeos » 27 Jun 2019, 10:17

Have you read this articles: https://aimeos.org/docs/Developers#Themes
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

superscotty19
Posts: 95
Joined: 13 May 2019, 08:09

Re: Auto-Expand Filters/Attribute Tree?

Post by superscotty19 » 27 Jun 2019, 10:20

Yes, but I don't know what method to modify....

Post Reply