Is it possible to display the facet blocks as a select list rather than an unordered list?

Comments

pwolanin’s picture

Version: 6.x-1.0-alpha5 » 6.x-1.x-dev
Category: support » feature

Well, this is easier in some cases in others. For example, there can only be one node type per node, but taxonomy can be single or multiple per node.

We're going to be making some changes to the facet block handling code in the next week. Once that shakes out, take a look at it - you should be able to easily write a small module to provide the sorts of blocks you desire.

Otherwise we'll keep this in mind as a feature request.

jpmckinney’s picture

Category: feature » support

This can be done with theme_apachesolr_facet_list and a custom form to handle submitting your selection.

jpmckinney’s picture

Marking #629412: Dropdown selector duplicate.

marcoka’s picture

good usability suggestion. i will try to do it like jpmckinney suggested. thanks

jpmckinney’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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

marcoka’s picture

the only problem here is that $items contains all facet data without any information from which source its from (taxonomy vocabulary). So if using this function i think its neccessary to write an own identification function to check where the data comes from (in case you only want to alter specific blocks, and not all). what do you think?

marcoka’s picture

a solution is to take a look how it is done on drupal.org -> http://drupal.org/project/drupalorg