Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
If you know the fields you want, all you need to do is create your own template file.
From the module's directory copy the file exposed_filter_data.tpl.php to your own theme directory.
Change this file any way you like to make it nicer.
Use the existing CSS file exposed_filter_data.css, or in you theme css files to fit to your needs.
Your exposed filter uses some ID as the actual value it is being filtered by.
I guess that tid is related to tid - do you filter by taxonomy terms ?
If so, in your tpl file try to print out some more data to see if it gets you somewhere: print_r($tid);
and print_r(taxonomy_get_term($tid_1));
Comments
Comment #1
shushu commentedIf you know the fields you want, all you need to do is create your own template file.
From the module's directory copy the file exposed_filter_data.tpl.php to your own theme directory.
Change this file any way you like to make it nicer.
Use the existing CSS file exposed_filter_data.css, or in you theme css files to fit to your needs.
Remember to flush your cache to see the changes.
Let me know if you need any additional help.
Comment #2
taras80 commentedThe result of two exposed filters is: Filtered by:
tid:Arraytid_1:1182 Need further instructions for my little knowledge. Thanks
Comment #3
shushu commentedYour exposed filter uses some ID as the actual value it is being filtered by.
I guess that tid is related to tid - do you filter by taxonomy terms ?
If so, in your tpl file try to print out some more data to see if it gets you somewhere:
print_r($tid);and
print_r(taxonomy_get_term($tid_1));Let me know if you manage from here.
Comment #4
taras80 commentedThe result says Filtered by:
tid:1
How to display term name not ID?
Comment #5
rburgundy commentedsubscribing
Comment #6
TravisJohnston commentedI am in need of this as well. I am trying to print out the data in 2 ways.
1) trying to create a sort of "breadcrumb" to show the applied filters
2) would like to print out the applied filter for only 1 filter though, not all exposed filter on page.
Comment #7
drupal_user007 commentedHallo,
copy the exposed_filter_data.tpl.php in your theme's folder and change the file to:
Comment #8
shushu commentedComment #9
jrock526 commentedHello,
I am getting the following error with the above code. Thanks ahead of time.
Parse error: syntax error, unexpected T_FOREACH in /opt/blah/stage.blah.com.git/web/modules/exposed_filter_data/exposed_filter_data.tpl.php on line 11
Comment #10
drupal_user007 commentedHallo jrock526,
did you set all semicolons?
Comment #11
Yuri commentedHow can this be achieved with an entity reference exposed filter using nodes instead of terms?
Comment #12
Yuri commentedComment #13
meramo commented#7 worked for me. Thanks!