Hello everyone.

I've ran into issue when using facets and views exposed filters together. The problem is that if I choose some facets first and afterwards I'll submit views exposed form - all the facets will be unchecked. (because facets get their values from the URL, and exposed form doesn't respect those parameters).

I wrote a small module to overcome this issue: http://drupal.org/sandbox/Soul88/1865682

And not sure what should I do next:
- make a patch out of this module?
if so: what module should I create a patch for? is my current solution ok?
- try to promote it to full project?
- anything else?

Comments

dasjo’s picture

Status: Active » Closed (duplicate)
soul88’s picture

Status: Closed (duplicate) » Active

That's not a duplicate. The linked issue is aimed to explain to facetapi the format of exposed filters

Mine is aimed to tell to the exposed filters form that there are already some facets or sorts were chosen with the help of facets blocks and these options shouldn't automatically disappear when user submits views exposed form.

cpliakas’s picture

Category: bug » feature
damienmckenna’s picture

Title: Marry facetapi & views exposed filters 2 » Automatically add existing facets to the Views exposed filters
Issue summary: View changes

The sandbox doesn't quite work - it needs to get a list of views that have exposed filters and make a list of them, right now it only allows you to control what's already in the variable, which is empty by default. Still, this would be great when it works :)

damienmckenna’s picture

FYI there's an issue with some code to turn into a patch that might be worth trying too: #2378945: Facets are lost by Views on keyword search