Closed (fixed)
Project:
Facet API
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
19 Apr 2014 at 00:34 UTC
Updated:
22 Jul 2014 at 14:10 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
hanoiiComment #2
hanoiiComment #4
hanoiiProperly formatted patch.
Comment #5
justanothermark commentedI had a similar issue but didn't see this issue until after writing a patch. I haven't had chance to test the patch in #4 since I spent so long getting a working solution but I've included my patch as the approach is quite different.
My patch modifies FacetapiUrlProcessorStandard::getQueryString() to modify the created links so that clicking a child will remove the parent from the URL (for OR facets) and so that deactivating a child facet will enable the parent (i.e. only deselect the lowest level). However, this does involve changing the parameter passed through & therefore counts as an API change that could break other modules.
Comment #7
hanoii@justanothermark I know it's an extra mile, but your patch failed testing and you mentioned of an API change, mine does not change the API and passed tests, could you try it for your case and see if it works for you the same as yours? If it does at least we'll have another tester.
i will hide yours in the meantime to keep the issue with one patch to review for now.
Comment #8
khiminrm commented@hanoii, thanks for the patch! It works for me. I also need such behavior for hierarchical facets.
Comment #9
hanoiibumping this one as the related issue was included, re-rolling for latest dev although patch still applies.
Comment #10
hanoiiComment #11
cpliakas commentedThanks for the contribution. Cool feature!
The patch works as advertised so marking as RTBC, however I do want to revisit the setting's name prior to releasing 7.x-1.5 just to make sure it is clear to people what it does. The description looks great, but as we know from UX studies people open don't reed the small gray text :-)
Thanks again, and great work.
Chris
Comment #12
cpliakas commentedChanged title, added child issue at #2299543: Re-evaluate the name of the "Treat parent items as individual facet items" setting.
Comment #15
cpliakas commented