Thursday, January 19, 2012

Drupal views Filters & Exposed Filters

Another feature drupal provides is exposed filters. Exposed filters are essentially filters that are accessible to any visitor of your website, while acting just like normal filters. To use an exposed filter, you first have to create a normal filter, then click expose.
One example of exposed filters is limiting your search by keywords/taxonomy. To do this, you have to expose 2 filters: 'search:Index' and 'Taxonomy:terms'. Once you do this, you will be able to search for your words in posts with a certain keyword/taxonomy term.
As you can see, selecting a tag and using a search term gives a more accurate result than simply selecting a tag or using a search term by itself.

No comments:

Post a Comment