Closed (cannot reproduce)
Project:
Better Exposed Filters
Version:
6.x-1.0-beta4
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
8 Nov 2010 at 11:57 UTC
Updated:
17 Jun 2013 at 06:19 UTC
Jump to comment: Most recent file
Comments
Comment #1
eli-tI've implemented this separately in hook_form_alter() by moving the exposed filters inside a collapsible fieldset - I could patch into BEF module if the maintainer(s) thought it would be a good addition?
Comment #2
mikeker commentedI always welcome patches, though I'm about half way through adding this feature.
But you're welcome to race me... *smirk*
I should warn that HEAD has been getting a few much-needed changes so make sure you're on the latest.
Thanks!
Comment #3
mikeker commentedI've added this for the Views 2.x and 3.x version of BEF.
In both cases, this change included a refactoring of how the exposed filters were rendered. In particular, the
bef-select-as-checkboxesandbef-select-as-radiosclasses were moved to elements much closer to the actual checkboxes/radio buttons. This is how it should've been done in the first place. Unfortunately, this change will affect CSS and JS that depends on the previous hierarchy. I'll be adding some more information to the docs about this change.The collapsible filter is rendered as a standard Drupal collapsible fieldset. It's closed by default. If any of the options in that filter have been selected, then it's opened. I was concerned about making the exposed filters options dialog more muddy than it was if I offered the option to set the fieldset as collapsed or expanded by default. Please open a separate issue if you feel this option is important.
Give the latest -dev release a try.
Comment #4
mikeker commentedOh... Beat you to it, Eli-T! *smirk*
Comment #5
jadenoel commentedSo, I'm using exposed filters in Views with two taxonomy:term id with depth filters. I would love the collapsible functionality since my lists are heirarchical and have 100+ items.
But I tried the latest dev version of BEF and when I click the "collapsible" box in Views, the list of terms disappears from the page. The label is still there, but no checkboxes, no list, nothing.
When I leave the "collapsible" box unchecked, the list of terms with checkboxes show up fine (but it is a mile long).
Thanks for working on this - it's a great project.
---Update---
Instead of using taxonomy:term id with depth filter, I used Content:___ field that pulls terms from a Content Taxonomy Field I set up and now the collapsible option works, but I still have a question (see post below).
Comment #6
jadenoel commentedIs there a way to collapse/expand according to the hierarchy?
I have a hierarchical vocab with a depth of 3 or 4 and there are only a handful of parents and children but over a hundred grandchildren.
So it would be great if not just the root, but also all the sub-parents could be collapsible/expandable as well (like in the interface of Taxonomy Manager). Is this possible?
Disregard the attached picture. I can't figure out how to delete it.
Comment #7
mikeker commentedjadenoel: I'm guessing the issue mentioned @5 is a matter of not having a label set for the exposed filter. If there is no label, then there's nothing in the fieldset to click on to expand/collapse it. Anyhow, I'm glad you were able to get around the issue using Content Taxonomy fields.
As to expanding/collapsing large hierarchical taxonomy filters (@6), that's a problem I've been struggling with as well. However, it's best brought up in a separate issue as this one is specific to expanding/collapsing the filter itself, not the contents within the filter.
(Suffice to say that when I last looked at it, it wasn't an easy thing to make Taxonomy Manager's tree structure work with exposed filters...)
Thanks.
Comment #8
eli-t@4 Hey Mike - sorry, I've been mainly painting my flat in meatspace so not had time to contribute. Nice to know great minds think alike though :)
Comment #10
doublejosh commentedThis doesn't seem closed or fixed and it looks like there is still interest.
I'd love to output BEF checkboxes from taxonomy with hierarchical DOM for some simple jQuery accordion scripts.
This would probably also be nice just for better nesting with padding and other style cues.
(added PHP tags just for easier reading with highlighting.)
So rather than...
You would need...
The parent term would need to get a header class to act as the accordion parent. Imagine for deeper term hierarchies, you'd want to throw the level classes in.
Suppose I could just write a version of theme_select_as_checkboxes in my theme, but this seems like a wider needed thing.
Comment #11
mikeker commentedSee #990080: Collapse and Expand according to Hierarchy.
Comment #12
mikeker commentedI should point out that the original issue here was collapse/expanding ANY filter within a fieldset while #990080: Collapse and Expand according to Hierarchy is about adding HTML structure around a taxonomy filter with hierarchy.
Comment #13
doublejosh commentedSounds like this was already handled #990080: Collapse and Expand according to Hierarchy
Comment #14
Larsac07 commentedStill won't be collapsible when the filter's displayed as links. Works when it's displayed as either Default select list, Checkboxes/Radio Buttons or Nested Checkboxes/Radio Buttons
Comment #15
mikeker commented@#14: Please open a separate issue for that. Thanks.