Active
Project:
Menu Trails
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
18 Dec 2009 at 14:40 UTC
Updated:
16 Mar 2010 at 21:10 UTC
in my d6 installation with OG module i had problems with the default setting for "individual organic group trails". the module ignored the settings made for individual groups and used for all node pages the "Default menu trail for all nodes with group audience: " option instead. i fixed it with the following patch, not sure if it is a clean solution. but for me it seems to work.
--- menutrails.module.orig 2009-08-17 18:37:53.000000000 +0200
+++ menutrails.module 2009-12-18 15:30:57.000000000 +0100
@@ -150,8 +150,8 @@ function menutrails_node_location($node)
}
else {
$group_trails = variable_get('menutrails_og_node', FALSE);
- if ($group_trails[$group] > 0) {
- $href = 'node/'. $group;
+ if (!empty($group_trails[$group])) {
+ $href=$group_trails[$group];
}
elseif (variable_get('menutrails_og_post_default', FALSE)) {
$href = variable_get('menutrails_og_post_default', FALSE);
Comments
Comment #1
sun