Needs review
Project:
Collapsible Facets
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
28 Oct 2011 at 21:50 UTC
Updated:
23 May 2012 at 08:04 UTC
Jump to comment: Most recent file
When using the "expand hierarchies" option on facet blocks, the list can become a bit unwieldy. It would be nice if the hierarchies were collapsed by default and expanded on hover or by clicking an expand (+ ?) button next to the item.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | i1325462-6.patch | 6.31 KB | attiks |
| #5 | i1325462-5.patch | 6.21 KB | attiks |
Comments
Comment #1
attiks commentedAlso remember the state using a cookie
Comment #2
attiks commentedPatch by Jelle_S and some small fixes of me:
you get a new setting at configure facet display called 'Collapsible children'
if checked the hierarchy is collapsible/expandable
the state is recorded inside a cookie
it respects the expand setting ("If checked, this facet will automatically expand if it is the first on the page.")
Tested on Chrome and FF
Comment #3
attiks commentedComment #4
Shadlington commentedYou didn't actually attach a patch
Comment #5
attiks commentedoops
Comment #6
attiks commentedNew patch: expanded the block as well if needed
Comment #7
attiks commentedI created a new sandbox to keep track of the changes: http://drupal.org/sandbox/attiks/1530898
Comment #8
dargente commentedThe patch doesn't seem to match the latest code from the Collapsible Facets module. Can you provide an update to either the patch or latest Collapsible Facets module? Collapsible Parents is definitely a great feature. Thanks.
Comment #9
jelle_swhat makes you think that? won't the patch apply? The latest commit to Collapsible facets was Dec 16th 2011, patch was made April 13th 2012
Comment #10
dargente commentedReason I say that is because looking at the patch and the Collapsible Facet module I downloaded, the code is different. Can you guide me in the right direction?
I downloaded the module from here:
git clone http://git.drupal.org/sandbox/katbailey/1229060.git collapsible_facets
Comment #11
jelle_safter you've done the git clone command, download the patch and place it in the folder,
then in the terminal, go to that folder and execute this command:
The patch should then just apply.
Comment #12
attiks commented@dargente you can also download the module from http://drupal.org/sandbox/attiks/1530898, it includes the patch from #6
Comment #13
dargente commentedThis worked, although I had to copy over the 5 files manually. Not sure if I missed a step. Anyways, all the child taxonomy terms collapse into the parent term as expected. Great module. Thanks!