The last breadcrumb for all taxonomy terms are now "Taxonomy term", which is not very useful, when zen_breadcrumb_title is on. It used to be the title of the term in beta3.

Examples:
1.0: the breadcrumb for taxonomy/term/2 is "Home › Taxonomy term"
1.0-beta3: the breadcrumb for taxonomy/term/2 was "Home › Title"

I've noticed that these lines were removed from zen_preprocess_page() in template.php:

  // Add an optional title to the end of the breadcrumb.
  if (theme_get_setting('zen_breadcrumb_title') && $vars['breadcrumb']) {
    $vars['breadcrumb'] = substr($vars['breadcrumb'], 0, -6) . $vars['title'] . '</div>';
  }
CommentFileSizeAuthor
#7 title-in-breadcrumb-374349-7.patch788 bytesJohnAlbin
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ball.in.th’s picture

It seems to work better if template.php is changed like this:

      //$trailing_separator = $title = '';
      $trailing_separator = '';
      if (theme_get_setting('zen_breadcrumb_title')) {
        $trailing_separator = $breadcrumb_separator;
        //$title = menu_get_active_title();
      }

and add the code above back.

JohnAlbin’s picture

Title: last breadcrumb for all taxonomy terms are now "Taxonomy term" when zen_breadcrumb_title is on » breadcrumb often broken when zen_breadcrumb_title is on

Marked #405444: "Forum" appears instead of container or forum name in breadcrumb as a dupe of this one.

And, yeah, that's a bug alright. Looks like I didn't test #343945: Fix zen_breadcrumb_title setting to use proper menu_get_active_item() enough. :-(

Edlund’s picture

I had the problem with views in general and these two pieces of code solved the problem, so now the bread crumb looks right both for page/story nodes and for views.

aharown07’s picture

I'm not clear on where to put the code... I'm using a subtheme based on zen classic, if that matters

aharown07’s picture

OK, comparing 1.0 beta3, I can tell that the lines in the original post go immediately after function zen_preprocess_page<code(&$vars, $hook) { and before //add conditional stylesheets

Found the other also. It begins at the commented line //$trailing_separator = $title = '';

I can verify that these changes also produce very good results in the forums.

Jolidog’s picture

I don't know if it's related, or if I should open a new issue, but the breadcrumbs are showing a trailing when viewing a view without a title defined.

I know there are problems with views and breadcrumbs. I'm trying to solve them using the custom breadcrumb module, but the behavior indicated above happens without any other module interfering with the breadcrumbs.

Should there be a check to see if a view has a title, before adding a trailing in the end?
I don't know of any other content that exists without a title but this probably should be a general setting and not dependent on views.

JohnAlbin’s picture

Version: 6.x-1.0 » 6.x-1.x-dev
Component: Code » PHP Code
Status: Active » Patch (to be ported)
FileSize
788 bytes

Fixed in HEAD (zen 6.x-2.x).

Here's the patch for DRUPAL-6--1.

JohnAlbin’s picture

Status: Patch (to be ported) » Fixed

Fixed in zen 6.x-1.x-dev (once it gets automatically re-rolled in 12 hours).

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.