[drupal-devel] [feature] Testers needed: Node Type filtering in taxonomy on Drupal 4.5

matteo drupal-devel at drupal.org
Mon Jan 24 09:16:08 UTC 2005


 Project:      Drupal
 Version:      cvs
 Component:    taxonomy.module
 Category:     feature requests
 Priority:     normal
 Assigned to:  matteo
 Reported by:  matteo
 Updated by:   matteo
-Status:       active
+Status:       patch
 Attachment:   http://drupal.org/files/issues/taxonomy_nodetype_CVS.patch (4.05 KB)

Here is the patch for Drupal CVS.
I noticed the great addition of node_rewrite_sql... very powerful...
I'm starting extensive testing on the patch, and I really woul like it
to be added to core taxonomy, because it becomes a must for several
sites...
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


------------------------------------------------------------------------

January 24, 2005 - 00:19 : matteo

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


------------------------------------------------------------------------

January 24, 2005 - 00:38 : Steven

New features only get added to the HEAD branch... you'll have to update
your patch.

------------------------------------------------------------------------

January 24, 2005 - 07:56 : matteo

Ok, Steven,
I'll rewrite the patch also for CVS....
Thanks

Matteo


-- 
View: http://drupal.org/node/12114
Edit: http://drupal.org/project/comments/add/12114





More information about the drupal-devel mailing list