Filter refine by taxonomy to not show on pages made by site map module
FlemmingLeer - September 27, 2008 - 12:42
| Project: | Refine by taxonomy |
| Version: | 5.x-0.1 |
| Component: | Miscellaneous |
| Category: | task |
| Priority: | minor |
| Assigned: | Unassigned |
| Status: | active |
Description
Currently refine by taxonomy does not work on pages generated by Site map http://drupal.org/project/site_map.
Put this small code in the refine by taxonomy block to prevent it to be shown on pages ending with /all.
<?php
// do not show refine by taxonomy on pages with /all in the end
if ((arg(0) == 'taxonomy') && (arg(1) == 'term') && (arg(3) == 'all')) {
return FALSE;
}
// Otherwise
return TRUE;
?>