drupal-6


Drupal, Views Exposed Filters: List Options Containing Results


I'm setting up an apartment search site and have exposed a views filter for 'property type'. The property type is a select field with 16 options but the client only wants those options that actually contain results to appear in the drop down of the exposed filter.
Any ideas?
Thanks!
You could use form_alter, Take a look at: http://drupal.org/node/463990, or http://drupal.org/project/better_exposed_filters for usage specific to exposed filters.
this is what you want http://drupal.org/project/views_hacks#views_filters_selective
Views Selective Exposed Filters
On list and checkbox exposed filters, you can specify the filter option "Limit list to result set" to only display values that are actually returned in the view's results. The filter option "Further limit list to active filters" restricts the displayed values to view results obtained by applying exposed filter values.

Related Links

How to render page elements from hook_form_alter() drupal 6?
In drupal read css file and add it's content as inline in “page.tpl.php”
Drupal 6: Adding sub menu items on a menu item?
Why am I getting a page not found error after creating a new menu item?
Drupal Module help required
Disable a module from a specific view - Drupal 6
switch chef-client user during bootstrap
Fix Drupal 6 menu urls on test server
Drupal 6 - is node_submit() needed when saving node?
Apache Solr : Filter results by minimum relevancy in drupal 6.x
How can I add the tracking number to the message the users receive?
How can I get the term id after using taxonomy_save_term?
Why can't my user access a certain page?
jqModal popup does not opens
Access alias of a node programatically using Drupal 6
When variable_get() can be used while variable_set() has not been used?

Categories

HOME
vim
openlayers
deployment
webpack
cookies
magnific-popup
deezer
path-finding
nullpointerexception
objectgears
rsyslog
filtering
spring-jdbc
frameworks
jgroups
basic
flask-wtforms
beyondcompare
shared-hosting
lldb
nas
ml
cultureinfo
microsoft-sync-framework
poltergeist
chromebook
url-scheme
maxmind
flink-streaming
avcapturesession
xcode-extension
x11-forwarding
elasticsearch-plugin
janrain
segment
convertapi
wptoolkit
osx-mavericks
errordocument
alphabet
dotnetzip
windows-mobile-6.5
windows-iot-core-10
jspdf-autotable
spring-mongodb
eventkit
elements
login-control
holder.js
flash-cs5
react-native-listview
associative-array
natvis
spim
jqgrid-formatter
myo
generic-programming
sortedlist
proj4js
umbraco6
geonetwork
nsmutabledictionary
facebook-graph-api-v2.4
codeigniter-url
device-manager
jquery-layout
openlaszlo
page-layout
tidy
mylyn
hungarian-algorithm
mqx
interface-orientation
sharp-repository
delphi-6
angularjs-controller
hamiltonian-cycle
word-processor
manchester-syntax
javaspaces
online-compilation
adk
mod-auth
coercion
appender
iphone-web-app
paster
infrastructure
dbal
w3wp
ugc
caching-application-block

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App