I'm having a very strange issue with the setting 'zen_breadcrumb_title' enabled. (ie: puts current page title at the end of the breadcrumb). The issue is that the page title will display twice in the breadcrumb.

For example, I create a node with title "Foo", and add it to the primary links menu. I set the following Austin theme options:
zen_breadcrumb = "yes"
zen_breadcrumb_separator = ", "
zen_breadcrumb_home = 1
zen_breadcrumb_trailing = 0
zen_breadcrumb_title = 1

When I navigate to my node, Austin displays the breadcrumb as:
You are here: Home, FooFoo

Things get strange when I try to debug it. In Austin's page.tpl.php, if I change:

<div class="breadcrumb-wrapper"><?php $breadcrumb; ?></div>

to:

<div class="breadcrumb-wrapper"><?php print theme('breadcrumb', drupal_get_breadcrumb()); ?></div>

... the breadcrumb will properly display as
You are here: Home, Foo

Something must be messing with the $breadcrumb variable before it gets printed.

Then things get weirder. I currently have only enabled Drupal's default core modules. If I turn on Theme Developer (& devel), the problem disappears. Disable Theme Developer, and the problem comes back.

Does anyone have any ideas about what is going on here?

CommentFileSizeAuthor
#2 breadcrumb-555910-2.patch1.88 KBJohnAlbin
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

JohnAlbin’s picture

Status: Active » Needs review

The entire austin_breadcrumb function should be removed from template.php. The default one in Zen is fine without an override, afaik.

JohnAlbin’s picture

FileSize
1.88 KB

Here's the patch for it.

JohnAlbin’s picture

Status: Needs review » Postponed (maintainer needs more info)

Hmm… I take it back. There is a "you are here:" text in there.

Colleen gave me commit access. I've updated austin_breadcrumb with changes that were already made to zen. I'm honestly not sure if that fixes the double-title problem you are experiencing, Ryan. Can you see what happens?

JohnAlbin’s picture

Project: Austin Zen Sub Theme » Zen
Version: 6.x-1.x-dev » 7.x-3.x-dev
Component: Code » PHP Code
Status: Postponed (maintainer needs more info) » Active

Ok. I think this is a bug in Zen, not in Austin.

Zen will double print the title if you are on a tab that isn't the default tab. This is because Drupal properly shows the full breadcrumb path including the link to the default tab. Unfortunately, the default tab and the page title are the same… thus, the duplicate title.

MustangGB’s picture

#907690: Breadcrumbs don't work for dynamic paths & local tasks #2 has landed.
I believe it will effect on this issue, but I haven't had a chance to test it for myself.

JohnAlbin’s picture

Title: Double title in breadcrumb » "Append title to breadcrumbs" option shows doubled titles on non-default tabs

Needs fixing for sure.

JohnAlbin’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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