Is there an easy way to display the first level of the crumbtrail somewhere else on the page template? So if my crumbtrail is: Home > Services > Some Service, display "Services" somewhere else on the page?

I asked this question before but I think it may have been misunderstood.

Comments

zzolo’s picture

API Documentation:
http://api.drupal.org/api/function/theme_breadcrumb/5

Basic BreadCrumb Help:
http://drupal.org/node/64067

More Advanced:
http://drupal.org/node/73999

There are probably a few ways to go about this. Not the best way, but a way would be to pull out the variable that you want from your customized theme function.

function phptemplate_breadcrumb($breadcrumb) {

  // we use globals to get the variable.  not the best way.
  if (count($breadcrumb >= 2)) {
    global $global_breadcrumb = $breadcrumb[1];
  }

  if (!empty($breadcrumb)) {
    return '<div class="breadcrumb">'. implode(' » ', $breadcrumb) .'</div>';
  }
}

Then you could use $global_breadcrumb where you want.

I have not tested this.

--
Alan

--
zzolo