Active
Project:
Refine by taxonomy
Version:
5.x-0.1
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
10 Mar 2008 at 16:43 UTC
Updated:
13 Sep 2008 at 11:10 UTC
Right now the only path that will trigger the module is "taxonomy/term". I currently use the contrib module taxonomy menu which generates links such as "category/4/5". How hard is it to modify the module to work with the menu links as well as the originals?
Is this the only function that would need to be changed?
function refine_by_taxo_page_is_term_list() {
if (arg(0) == 'taxonomy' &&
arg(1) == 'term' &&
preg_match('/^([0-9]+[+, ]?)+$/', arg(2))) {
//url starts with taxonomy/term
//and contains a number, or a 123,1456 type combination.
return TRUE;
}
else {
return FALSE;
}
}
Comments
Comment #1
dthiessen commentedStill looking for an answer. Do I need to provide more information?
Comment #2
Bèr Kessels commentedThat is the function. But instead, we should make this more general and modular. Something like a hook to retrieve taxo information of the current path could be used for modules such as panels and views too.
Comment #3
summit commentedSubscribing, very interested. Greetings, Martijn