Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Would it be possible to change behaviour of facets to not hide other options. For example I have
Monday
Tuesday
Wednesday
....
So When I click Tuseday, i Get indexed nodes from Tuseday, but to get back and to choose Monday, I need to go back with (-) and then click Monday. I would like to skip that go back step and just highlight that Tuesday is selected currently but then easily go back to Monday. I guess I would need to rewrite facet handler, which is ok, just maybe need some directions and would it be possible to do without forcing facets to behave like they usually do?
Comment | File | Size | Author |
---|---|---|---|
#5 | Better-Description-Facet-Count-2199837-5.patch | 708 bytes | Marko B |
Comments
Comment #1
Marko B CreditAttribution: Marko B commentedI am aiming to something like yelp
http://www.yelp.com/search?find_desc=bars&find_loc=Woodland+Hills%2C+CA&...
when you click and narrow down, you still get to have other to choose from.
Comment #2
vintorg CreditAttribution: vintorg commentedMarko, I need the exact same thing right now for a paid client. Any luck figuring this out?
Comment #3
vintorg CreditAttribution: vintorg commentedMarko, I found the solution: https://drupal.org/node/1658964
Comment #4
Marko B CreditAttribution: Marko B commentedThanx. I seems this can even be achieved with using OR operator and setting minimal facet count to zero. Which is cool. Don't know why I was afraid to try this before. I just didn't understand from description it will do that.
Comment #5
Marko B CreditAttribution: Marko B commentedI am providing a patch that will give a little bit better description in admin page for zero count facet.
Comment #6
Marko B CreditAttribution: Marko B commentedComment #7
vintorg CreditAttribution: vintorg commentedMarko, are you using Solr?
Comment #8
Marko B CreditAttribution: Marko B commentedyes solr, not regular db search.
Comment #9
vintorg CreditAttribution: vintorg commentedI was using the database server. I don't think it handles ORs.