taxonomy_menu.modules
fix:
function taxonomy_menu_page() {
if (arg(2)) {
$arguments = explode("/", $_GET["q"]);
$main_tid = check_query(array_pop($arguments));
}
else {
$main_tid = arg(1);
// HERE ^^^^^^^^^^^^^^
}
if (variable_get("taxonomy_menu_display_descendants", 1)) {
$tree = taxonomy_get_tree(arg(1), $main_tid);
$tids = array_map("_taxonomy_menu_get_tid_from_term", $tree);
}
$tids[] = $main_tid;
$taxonomy->operator = "or";
$taxonomy->tids = $tids;
$taxonomy->str_tids = implode(",", $tids);
print theme("page",
This hack permit to have content displayed for the root of a
vocabulary (eg. useful for multi language sites).
term_node has to be edited manually since it is not possible to assign
a vocabulary to a node... just a term.
Comments
Comment #1
morbus iffThe suggested fix assigns the $main_tid to the parent tid passed, not the vocabulary ID (so, taxonomy_menu/2/ would load up tid 2, not vid 2). I'll hopefully be submitting a proper patch for this soon.
Comment #2
morbus iffClosing. This is fixed by the patch in http://drupal.org/node/13275.