Facet API provides some nice generic API functions and methods that provide useful context about the search being executed. Therefore it seems that it would fit very well with the Context module. Some of the contextual information that can be provides are things like which search page a user is on, whether a search was executed, which facets are active, etc. Adding to the "Contrib" list since this should be created as a separate module that integrates the two projects.
Related issue posted against Context at #595210: Add a condition for searches being executed.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | facetapi-1379308-context-condition.patch | 4.36 KB | ygerasimov |
Comments
Comment #1
attiks commentedI'm looking for context integration as well, but as a reaction. I want to be able to change the facets depending on some condition (in my case the screen size of the browser), so I can limit the number of items displayed.
Comment #2
cpliakas commentedCool use case. The facetapi_set_facet_enabled() and facetapi_get_facet_disabled() functions will come in handy here.
Comment #3
ygerasimov commentedI have created a sandbox project http://drupal.org/node/1591872 that already has Facet values condition. Welcome to test and give feedback.
Comment #4
ygerasimov commentedOops. Please disregard attached patch. :)
Comment #5
attiks commentedLink should be http://drupal.org/node/1591872
Comment #6
ygerasimov commentedThanks. Corrected.
Comment #7
cpliakas commentedThis is looking awesome. Lot's of possibilities. Marking as fixed since a contrib module is providing this.