Refine by taxonomy: D6 port via Deadwood-module

motto - August 26, 2008 - 22:41
Project:Refine by taxonomy
Version:HEAD
Component:Code
Category:task
Priority:normal
Assigned:Unassigned
Status:needs work
Description

Hi folks,

I used the deadwood module to convert the old refine_by_taxo module so that it is compatible with D6, because I needed it so badly. Astonishingly it works fine with me. Deadwood changed only minor things: corrected function calls for taxonomy_vocabulary_load() and the url() function. I would call it unstable, but only because I didn't have the time to test it properly.

Regards, Matt

AttachmentSize
refine_by_taxo.tar.gz9.71 KB

#1

Bèr Kessels - September 3, 2008 - 18:37
Status:needs review» active

this is not a patch. http://drupal.org/patch/create

#2

Rosamunda - September 13, 2008 - 20:18

I would need this module too for my D6 site... if it´s not a patch... what is it? Could it be used in a production site? What does Bér thinks of it?
What about the security announcement?

BTW, I´ve tried it on a test D6 site and seems to work just fine. I´m just worried because I need it for a production site, and I´ve recently find that security announcement...

#3

no2e - September 14, 2008 - 16:09

I'm interested in it, too.

#4

Rosamunda - September 14, 2008 - 20:42

There´s this other module (Faceted Search [D6 version is being worked out]), but I think isn´t as easy as Refine by Taxo is.

#5

no2e - September 24, 2008 - 19:45
Title:D6 port via Deadwood-module» Refine by taxonomy: D6 port via Deadwood-module

#6

zirvap - February 22, 2009 - 13:30
Status:active» needs work

I've made a patch of the version posted by motto. This is the first patch I've made, if I did any mistakes I'd be happy for pointers on what do to differently next time.

I've tried it (briefly, with a very small vocab), and it works. Demo at http://www.pvv.ntnu.no/~zirvap/sandkasse/

Coder module had the following comments:

  • Line -1: @file block missing (Drupal Docs)
  • Line 1: Include the CVS keyword $Id$ in each file. This should be in the format // $Id$ or // $Id$ (Drupal Docs)//$Id: refine_by_taxo.module,v 1.9.2.2 2008/08/26 16:30:00 Exp $
  • Line 167: string concatenation should be formatted without a space separating the operators (dot .) and a quote $replacement = '$0' . $splitter . $refine_tid;
  • Line 193: string concatenation should be formatted without a space separating the operators (dot .) and a quote $sql = db_escape_string('SELECT DISTINCT tn.tid FROM {term_node} tn INNER JOIN {term_data} td ON td.tid = tn.tid WHERE' . $conditions);
AttachmentSize
refine_by_taxo_d6.patch 5.68 KB

#7

GiorgosK - September 27, 2009 - 08:40

Yet another module you can try with similar functionality
http://drupal.org/project/taxonomy_filter

#8

Macarro - November 14, 2009 - 23:10

Thanks, motto and zirvap, I'm using refine by taxonomy again after my upgrade to Drupal 6. So far I haven't found any problem, just a minor issue:

I have a taxonomy for "YEARS" wich is not multiselectable, so only one year tag per node. If I go to the taxonomy page for 1990, for example, refine by taxonomy outputs a filter showing "1991" wich is a)impossible b)weird since none of the nodes had this 1991 tag. Could be possible that refine by taxonomy is using the terms history for the nodes?

For me, refine by taxonomy is more user admin friendly than other modules since it's really simple to install and configurate.

Regards.

#9

Macarro - November 24, 2009 - 09:39

Although the module seems to work perfectly for the main admin, I'm getting this error when I try to see the taxonomy page from other roles:

user warning: Unknown column 'n.nid' in 'on clause' query: SELECT DISTINCT tn.tid FROM term_node tn INNER JOIN term_data td ON td.tid = tn.tid INNER JOIN node_access na ON na.nid = n.nid WHERE (na.grant_view >= 1 AND ((na.gid = 0 AND na.realm = 'all') OR (na.gid = 1 AND na.realm = 'workflow_access') OR (na.gid = 0 AND na.realm = 'workflow_access_owner'))) AND ( (tn.nid IN (127,560,606,4,1484)) AND (td.vid = 6) AND NOT (tn.tid IN (22) )) in /home/mysite/www/sites/all/modules/refine_by_taxo/refine_by_taxo.module on line 195.

 
 

Drupal is a registered trademark of Dries Buytaert.