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?
Comment | File | Size | Author |
---|---|---|---|
#2 | breadcrumb-555910-2.patch | 1.88 KB | JohnAlbin |
Comments
Comment #1
JohnAlbinThe entire austin_breadcrumb function should be removed from template.php. The default one in Zen is fine without an override, afaik.
Comment #2
JohnAlbinHere's the patch for it.
Comment #3
JohnAlbinHmm… 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?
Comment #4
JohnAlbinOk. 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.
Comment #5
MustangGB CreditAttribution: MustangGB commented#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.
Comment #6
JohnAlbinNeeds fixing for sure.
Comment #7
JohnAlbinFixed. http://drupal.org/cvs?commit=491574