[drupal-devel] [feature] Testers needed: Node Type filtering in
taxonomy on Drupal 4.5
matteo
drupal-devel at drupal.org
Sun Jan 23 23:19:40 UTC 2005
Project: Drupal
-Version: 4.5.0
+Version: 4.5.2
Component: taxonomy.module
Category: feature requests
Priority: normal
Assigned to: matteo
Reported by: matteo
Updated by: matteo
-Status: duplicate
+Status: patch
Attachment: http://drupal.org/files/issues/taxonomy_nodetype_452.patch (4.43 KB)
Here is the patch that adds nodetype filtering capabilities to 4.5.2
taxonomy module.
Syntax is backwards compatible, so if you plan not to use node type
filtering, syntax does not change at all.
(see previous postings in this thread)
I would need extensive testing and feedback... and hope this
functionality will be included into Drupal core.
Matteo
matteo
Previous comments:
------------------------------------------------------------------------
October 25, 2004 - 22:20 : matteo
Attachment: http://drupal.org/files/issues/taxonomy_nodetype_filter.patch (5.46 KB)
The attached fix wants to add a new feature to taxonomy.module: the
ability to filter data also on node types.
This is a need when you have to share one vocabulary between multiple
node types.
One example is the vocabulary 'Geography', containing all Cities and
Regions. You could have events, stories and other custom made node
types, sharing this vocabulary.
The need arises when you want to see only events of a certain region;
if you filter only on region, you'll see also stories and the other
custom node types.
The new syntax is the following:
taxonomy/term/term1,term2,term3(nodetype1,nodetype2)/........
to filter based on three terms (in OR each others) and on two different
node types
or
taxonomy/term/term1+term2+term3(nodetype1,nodetype2)/........
to filter based on three terms (in AND each others) and on two
different node types
The rest of the syntax for taxonomy/term remains the same, and the
patch works also for taxonomy feed.
Node types are tested for validity. You can specify one or more node
types; if you omit node types, normal term filtering is issued.
Feedbacks and help testing this patch is needed; personally, I think
this would improve temendously taxonomy functionalities, and hope this
will be committed to Drupal core.
Feel free to contact me by mail: m dot ferrari at tiscali dot it
Matteo
------------------------------------------------------------------------
October 25, 2004 - 22:25 : moshe weitzman
see http://drupal.org/node/5040
------------------------------------------------------------------------
October 25, 2004 - 22:46 : matteo
I agree with you that this is an old story, but nothing has been
committed to 4.5, that introduced also a new taxonomy syntax.
My patch has also some pluses:
- it is specific for 4.5 and takes care of the new taxonomy syntax
- it lets you specify multiple node types
- syntax is clean
Matteo
------------------------------------------------------------------------
January 19, 2005 - 23:05 : robclay
Will this work with 4.5.2?
If so - I am looking for exactly this funcionality!
------------------------------------------------------------------------
January 20, 2005 - 06:43 : matteo
I'll work on a port for 4.5.2 hopefully next week...
I'll keep you informed.
Matteo
--
View: http://drupal.org/node/12114
Edit: http://drupal.org/project/comments/add/12114
More information about the drupal-devel
mailing list