? menu-trails-parent-path-token.patch
Index: menutrails.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/menutrails/menutrails.module,v
retrieving revision 1.4.2.22
diff -u -p -r1.4.2.22 menutrails.module
--- menutrails.module	8 Jan 2010 17:42:54 -0000	1.4.2.22
+++ menutrails.module	19 Feb 2010 19:45:13 -0000
@@ -359,6 +359,17 @@ function menutrails_token_values($type, 
       $tokens['menu-trail-parents-path-raw'] = NULL;
       $tokens['menu-trail-parents-path'] = NULL;
     }
+
+    // Get the parent's alias;
+    $type_trails = variable_get('menutrails_node_types', array());
+    $href = $type_trails[$node->type] ? $type_trails[$node->type] : FALSE;
+    if ($href) {
+      $alias = drupal_get_path_alias($href);
+      $tokens['menu-trail-parent-alias'] = check_plain($alias);
+    }
+    else {
+      $tokens['menu-trail-parent-alias'] = NULL;
+    }
     return $tokens;
   }
 }
@@ -367,6 +378,7 @@ function menutrails_token_list($type = '
   if ($type == 'node' || $type == 'all') {
     $tokens['menutrails']['menu-trail-parents-path-raw'] = t("The menu trail leading up to but NOT including the node -- RAW");
     $tokens['menutrails']['menu-trail-parents-path'] = t("The menu trail leading up to but NOT including the node");
+    $tokens['menutrails']['menu-trail-parent-alias'] = t("The path of the node's menu trail parent");
     return $tokens;
   }
 }
