Proposed Drupal Module : views_active_filters

This is a new module that I would like to contribute on Feel free to comment and download the source for review.

The views_active_filters, as its name suggests, only works with views. It allows you to narrow down what you are looking for by setting active filters on the view. The first version of this module will only support taxonomy terms but I plan to also include support for content_type as well (in a separate module). Other modules could in turn provide new active filters. To set an active filter, you click on one of the taxonomy terms present on the view you are looking at (from a tag cloud or from the links of the node) and it will automatically alter the views query and filter the list of nodes to include only those which have this term. If I click on another term, it will include only the nodes that have both terms. The alteration of the query does an AND with all the active filters. The more active filters added, the less results you will get in the list of nodes.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <blockquote>
  • You may post PHP code. You should include <?php ?> tags.
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. Beside the tag style "<foo>" it is also possible to use "[foo]". PHP source code can also be enclosed in <?php ... ?> or <% ... %>.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options