I have updated the filter handler for CCK options list that use widgets. Changes include:
- Extend views_handler_filter_many_to_one
- This is what views uses for option widgets
- It builds the forms for us
- It provides more filter options
- Now support multi-select option list
- Filter options now include
- Is one of - IS operator for single select, OR operator for multi select.
- Is all of - IS operator for single select, AND operator for multi select.
- Is None of - NOT operator for single and multi select.
- Fixes bug where value is sometimes a string and other times an array
- Fixes bug where values with spaces return no results
This patch requires the patch from #1318234: Subquery filters not added properly to main query so that OR based sub query filters work properly.
To test :
- Create a Text based CCK option list using select, radio, or checkbox
- Create a solr view with an exposed filter using the CCK option list field
- Have fun making precise search pages quickly and easily
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | apachesolr_views_widget_handler-1318288-1.patch | 2.95 KB | tinker |
Comments
Comment #1
tinker commented