If you request a node listing for all terms within a vocabulary using (for example):
you end up with a "no postings in this categoy" message.
Changing the logic of line 283 in taxonomy_menu.inc seems to resolve the problem. If you are using module page names (like "category" or "taxonomy_menu") in the node list menu path then the existing logic incorrectly picks up this module page name as the vid instead of the actual vid number (arg(0) instead of arg(1)). The short-circuit boolean logic seems a bit suspect too but I didn't bother proving it. The change I made is:
Index: taxonomy_menu.inc
===================================================================
--- taxonomy_menu.inc (revision 944)
+++ taxonomy_menu.inc (working copy)
@@ -280,7 +280,7 @@
*/
function _taxonomy_menu_page() {
// Check if the Vocabulary ID is set
- if (($vid = arg(0)) || ($vid=variable_get('taxonomy_menu_hide_module_page', FALSE)?arg(0):FALSE)) {
+ if (($vid=variable_get('taxonomy_menu_hide_module_page', FALSE)?arg(0):FALSE) || ($vid=arg(1))) {
// Depending on what Output technique is used,
// show the nodes' list
I've tested this and it seems to work now with or without module page name enabled in the path.
Hope that helps someone or a maintainer.
Comments
Comment #1
arlinsandbulte commentedping... is this still valid?
Comment #2
arlinsandbulte commentedOh... actually is is for the 5.x-1.x version, which is no longer being actively maintained...
I'll mark as "won't fix" but feel free to re-open if you wish.
Comment #3
nmark commentedThe fix listed in topic does not work with views.
Comment #4
dstol