Hello,

I ran across this issue today when working on creating my breadcrumbs.
Instead of Home > Fruit > Oranges, the text is showing up as Home > Fruit > Oranges >
I'm using a Zen subtheme.
I tried to follow the suggestions for solving this fix for the Custom Breadcrumbs module at: http://drupal.org/node/581666 but that does not seem to fix this for me.

Any suggestions?

Thanks,
James

Comments

xurizaemon’s picture

Status: Active » Postponed (maintainer needs more info)

You don't indicate what makes you think this is related to menu_breadcrumb module.

Does disabling menu_breadcrumb make the trailing separator go away?

xurizaemon’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

James, I'm closing this issue for lack of response. Feel free to re-open when answering the questions above.

areikiera’s picture

Version: 6.x-1.1 » 6.x-1.3
Status: Closed (won't fix) » Active

Hello,

I've run into this same problem. I'm fairly certain that this is specifically a Zen theme/subtheme issue, and if need be, I'll post it there.

I've found a workaround that corrects this problem in zen for the Custom Breadcrumbs module (which appears to be the same fix that the original poster indicated), but not for this module. I'll post the code below (which is intended to be added to the template.php file):

/**

 * Return a themed breadcrumb trail.

 *

 * @param $breadcrumb

 *   An array containing the breadcrumb links.

 * @return

 *   A string containing the breadcrumb output.

 */

function zen_breadcrumb($breadcrumb) {

  // Determine if we are to display the breadcrumb.

  $show_breadcrumb = theme_get_setting('zen_breadcrumb');

  if ($show_breadcrumb == 'yes' || $show_breadcrumb == 'admin' && arg(0) == 'admin') {


    // Optionally get rid of the homepage link.

    $show_breadcrumb_home = theme_get_setting('zen_breadcrumb_home');

    if (!$show_breadcrumb_home) {

      array_shift($breadcrumb);

    }


    // Return the breadcrumb with separators.

    if (!empty($breadcrumb)) {

      $breadcrumb_separator = theme_get_setting('zen_breadcrumb_separator');

      $trailing_separator = $title = '';

      if (theme_get_setting('zen_breadcrumb_title')) {

        $trailing_separator = $breadcrumb_separator;

        $title = menu_get_active_title();


        //Check for empty title and kill separator if necessary.

        if($title == ''){

            $trailing_separator = '';

        }

      }

      elseif (theme_get_setting('zen_breadcrumb_trailing')) {

        $trailing_separator = $breadcrumb_separator;

      }

      return '<div class="breadcrumb">' . implode($breadcrumb_separator, $breadcrumb) . "$trailing_separator$title</div>";

    }

  }

  // Otherwise, return an empty string.

  return '';

}

Is there a variation of this code that could correct the problem for Zen sub-themers that want to use Menu Breadcrumb instead?

Any help would be greatly appreciated. Thanks!

areikiera’s picture

Status: Active » Fixed

For anyone else running into this problem... there's an easy fix. Go to Site Building > Themes > Configure (your Zen Sub-theme), then in the "Theme-specific settings" area, uncheck "Append a separator to the end of the breadcrumb". It's strange that it is automatically checked, but there it is.

It's easy to overlook when you're learning... noobies can bond in our constant self-embarrassment, right?

Thanks!

*marking this as fixed, unless jbroccoli was referring to another problem*

xurizaemon’s picture

Project: Menu Breadcrumb » Zen
Version: 6.x-1.3 » 6.x-1.1
Component: Code » Documentation

I'm sure there's a good reason - perhaps the Zen theme by default also appends the name of the current page, and disabling only one of those settings means you get the trailing separator.

Thanks for following up, areikiera. Will move this to Zen now as it's apparently unrelated to Menu Breadcrumb.

Status: Fixed » Closed (fixed)

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