--- relativity.module-2.4 2008-09-17 19:44:07.000000000 -0700 +++ relativity.module 2008-09-17 19:42:14.000000000 -0700 @@ -1067,8 +1067,25 @@ break; case 'view': + $ancestors = relativity_load_ancestors($node); + + if (is_array($ancestors) && count($ancestors) > 0) { + $breadcrumb[] = l(t('Home'), NULL); + foreach($ancestors as $ancestor) { + if (!is_array($ancestor)) { // Only handle single ancestors here + if (array_key_exists("path", $ancestor)) { + $breadcrumb[] = l($ancestor->title, $ancestor->path); + } else { + $breadcrumb[] = l($ancestor->title, 'node/'. $ancestor->nid); + } + } + } + if (count($breadcrumb) > 1) { + drupal_set_breadcrumb($breadcrumb); + } + } + if ($w = variable_get('relativity_'.$node->type.'_ancestor_weight', 0)) { - $ancestors = relativity_load_ancestors($node); if (is_array($ancestors) && count($ancestors) > 0) { $node->content['relativity_ancestors'] = array( '#value' => theme('relativity_show_ancestors', $node, $ancestors),