Type dependent facet blocks

robertDouglass - August 17, 2009 - 18:44
Project:Apache Solr Search Integration
Version:6.x-2.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed
Description

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

robertDouglass - August 17, 2009 - 18:45
AttachmentSize
type_dependent_blocks.patch 6.99 KB

#2

robertDouglass - August 23, 2009 - 16:32
Status:needs review» fixed

#3

robertDouglass - August 27, 2009 - 13:15

A followup that factors the visibility logic into a new function in the apachesolr.module for reusability. Committing attached patch.

AttachmentSize
type_hierarchy_refactor.patch 3.57 KB

#4

robertDouglass - September 7, 2009 - 13:13

Followup bug fix: $module was hardcoded.

AttachmentSize
type_filter_module_fix.diff 1.24 KB

#5

System Message - September 21, 2009 - 13:20
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

#6

socki - November 6, 2009 - 17:47

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.

AttachmentSize
apachesolr_contextual_facets.patch 6.06 KB
 
 

Drupal is a registered trademark of Dries Buytaert.