Exposed Filter Data

Component ID

868212

Component name

Exposed Filter Data

Component type

module

Maintenance status

Development status

Component security advisory coverage

covered

Downloads

7488

Component created

Component changed

Component body

This module provides a themed function called "get_exposed_filter_output()" which print out the values of the exposed filter used in a view.
This can be useful in the view header, in case the exposed filter is in a block, but there is a need to show the user according to what filter he got the results.

The idea is based on the discussion - #658566: Use data from exposed filter in title or header.

To use this module you should:

  • Enable the module
  • Add in the relevant view's header the php
    print get_exposed_filter_output();
    
  • Theme the content in any way you like by creating your own exposed_filter_data.tpl.php
  • All of the exposed filters are available in the $exposed_filters variable inside the template file.

    The basic template is not very useful since it does not have the proper labels of the filters.