[support] changing the display of the breadcrumb trail in blog module

Sarah.Vardy at student.griffith.edu.au Sarah.Vardy at student.griffith.edu.au
Tue Dec 11 02:07:37 UTC 2007


Hi,
I was wondering if it's possible to alter this function in the blog module, so that it displays a custom field from the user's profile instead of the user name of the user:
<?php
function blog_view($node, $teaser = FALSE, $page = FALSE) {
  if ($page) {
    // Breadcrumb navigation
    $breadcrumb[] = array('path' => 'blog', 'title' => t('Blogs'));
    $breadcrumb[] = array('path' => 'blog/'. $node->uid, 'title' => t("@name's blog", array('@name' => $node->profile_displayName)));
    $breadcrumb[] = array('path' => 'node/'. $node->nid);
    menu_set_location($breadcrumb);
  }
  return node_prepare($node, $teaser);
}
?>
Any help would be great!
Sarah
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20071211/9b9109ac/attachment.htm 


More information about the support mailing list