Taxonomy Sifter is a Drupal module that provides a block with terms which any or all selected must apply to a node for it to be listed when viewing a taxonomy term page, e.g. taxonomy/term/...
The vocabularies used in the block is configurable.
Given the path taxonomy/term/...
, where ...
is the identity number of a taxonomy term, Drupal responds by dynamically building a page with teasers of nodes with the given term applied to them. Often, more than just one term is applied to a node. By combining several terms with either the OR operator (+
) or the AND operator (,
) the returned teasers will correspond to nodes with any or all, respectively, of the terms applied. For further explanation, see the handbook.
There are several modules that leverage this feature by providing a block with a user friendly interface for combining the terms. Some examples are Refine by taxonomy, Taxonomy Filter and uBrowser. These modules works as filters which can be refined step-by-step. But, once the taxonomy term page is left, for instance by viewing a node sorted out by the filter, the filter is reseted. That is often the desired behaviour. But if the purpose of the filter is to provide a short-list of nodes to be reviewed, it can be very frustrating to reapply the refinement over and over again.
To this end Taxonomy Sifter provides a block where the user can select terms that automatically will be combined with the terms in every request of the form taxonomy/term/...
The selected terms are combined with the same operator already used in the request. If no operator is used, that is a single term is given, the sifter use the operator given in the module's settings. The vocabularies of the terms presented in the sifter block is also configurable.
To install Taxonomy Sifter you need:
Install Taxonomy Sifter as follows:
Download the archive file with the latest stable version from Taxonomy Sifter project page.
Unpack the downloaded archive into your Drupal's modules
directory.
Verify that the modules
directory contains a taxonomy_sifter
directory with taxonomy_sifter.module
.
Go to admin/modules
and enable the module.
Configure Taxonomy Sifter as follows:
Go to admin/settings/taxonomy_sifter
.
Select vocabularies that should be available in the Taxonomy Sifter block.
Select the default term filter. When a taxonomy term page or feed is requested, the given terms are combined with those selected in the Taxonomy Sifter block. If more than one term is given in the request, the combination is done with the operator used in the request. If only one term is given, the operator selected here is used.
Go to admin/access
and select the roles that will be allowed to view the sifter block, and also the roles that will allowed to administer the settings.
Go to admin/block
and enable the sifter block.
To combine the terms in a request for taxonomy/term/...
with terms in sifter block, select the terms in question in the sift block, and press the Sift button at the end of the block.
To select a single term, click on it with the mouse pointer. To select all terms between the last selected term and a second term, click on the second term with the mouse pointer while pressing the shift key. To add more terms, repeat the previous step while also pressing the ctrl key. To deselect terms, select them again while also pressing the ctrl key.
To restore the default behaviour of taxonomy/term/...
, press the Reset button at the end of the block.
Taxonomy Sifter. Copyright © Thomas Barregren.
Taxonomy Sifter is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
Taxonomy Sifter is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.