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 can Block direct access to drupal 6 site
how to clear varnish cache for a drupal view?
Drupal 6- 404 is not showing for menu item URL pattern implemented using hook_menu
hook the function in module in drupal
Conditional Field is not working with content_multigroup, cck , drupal
In drupal Primary Link is like empty
Programmatically creating nodes with audiofield in Drupal 6
Drupal: How do I pass profile tokens to user profile page?
CKeditor stopped working after drush up (6.22 -> 6.25)
Change markup field tekst during validation
FCK Editor's FileBrowser doesn't work anymore [closed]
Detecting whether a user has created his node profile
Creating and using services in drupal6
Setting a page variable in a function
Captcha image doesnot change dynamically in drupal 6,if admin is not logged in
Using views in drupal simplenews

Categories

HOME
ionic-framework
gerrit
omnet++
reflection
comparison
objectgears
xmpp
jira
malloc
amazon-ecs
django-imagekit
uber-api
amazon-cloudformation
slick-slider
gitpitch
mapserver
collectd
zend-framework3
php-7.1
vaadin7
undefined
crystal-reports-2008
sox
microsoft-r
windows-error-reporting
fluentvalidation
lightswitch-2013
bosh
contact-form
xmlreader
accelerate-framework
gammu
atl
amazon-kinesis-kpl
io-redirection
qwerty
xcode-extension
c11
splice
angularjs-factory
bootstrapper
wso2carbon
youcompleteme
darcs
font-size
query-performance
synchronous
or-tools
word-vba-mac
paypal-express
blackberry-10
hill-climbing
qcustomplot
make-install
pagerank
independentsoft
netmq
tcpserver
mutation-observers
iis-arr
interrupted-exception
formatjs
c3
android-nested-fragment
rdtsc
applescript-objc
internet-connection
zend-route
php-5.4
openexr
reactfx
mysql-error-1062
meteor-velocity
message-driven-bean
centos5
openlaszlo
prettify
inbox
dbconnection
flash-builder4.5
pygit2
limejs
type-equivalence
delphi-6
newtonscript
twrequest
tridion-worldserver
buildr
ohm
nsdatecomponents
psi
appender
gamequery
infrastructure
thunderbird-lightning
nintendo-ds
mediarss
paul-graham

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App