Type dependent facet blocks
| Project: | Apache Solr Search Integration |
| Version: | 6.x-2.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
A very common paradigm is to want type-specific verticals and behaviors. CCK, taxonomy, books and others can add facets that are type-specific. This patch adds a checkbox to each facet block configuration form asking if the block should be type dependent. If checked, the facet block only shows if the type:book or type:story filter is selected first. This is very convenient for our new in-the-well browsing facets. It also lets you enable lots and lots of facet blocks and not worry about running out of real estate because a large number of the blocks can be type dependent and only show when the requisite type filter has been selected. Committing the attached patch. Will leave open for review for some time.

#1
#2
#3
A followup that factors the visibility logic into a new function in the apachesolr.module for reusability. Committing attached patch.
#4
Followup bug fix: $module was hardcoded.
#5
Automatically closed -- issue fixed for 2 weeks with no activity.
#6
Here is a consolidated patch file which packages together all three of the above fixes into a single patch. This has been tested against the 6.x-1.x RC3 version of the module.