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.
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?