When using a sub-theme based on omega, overriding breadcrumbs doesn't seem to work. To reproduce:

In a sub-theme page-preprocess.inc try setting a breadcrumb via drupal_set_breadcrumb(). The theme does not appear to display the overridden breadcrumb. I believe this is due to Omega setting $vars['breadcrumb'] too early in the template request lifecycle (or possibly when setting the attribute to the zone array but it no longer is a reference variable). As a temporary fix, one can override the sub theme's region--breadcrumb.tpl.php with the following code:

<div class="<?php print $classes; ?>" <?php print $attributes; ?>>
  <?php if (isset($breadcrumb)): ?>
    <?php print theme('breadcrumb', array('breadcrumb' => drupal_get_breadcrumb())); ?>
  <?php endif; ?>
</div>

Comments

marcoka’s picture

Assigned: Unassigned » fubhy
Cellar Door’s picture

Status: Active » Closed (won't fix)

2.x is deprecated and no longer supported

adraskoy’s picture

Version: 7.x-2.x-dev » 7.x-3.0-rc2

Appears to still be an issue as of 7.x-3.0-rc2

adraskoy’s picture

Version: 7.x-3.0-rc2 » 7.x-2.x-dev

Traced issue to a module.

liquidcms’s picture

Version: 7.x-2.x-dev » 7.x-3.1
Status: Closed (won't fix) » Active

i am using omega 3.1 and custom_breadcrumbs module. the cb module uses std drupal_set_breadcrumb to set breadcrumbs. this works on some pages like node/23, but it does not work on node edit page like node/34/edit.

i have verified that the correct crumb trail is passed from cb module to the drupal_set_breadcrumb() function; but the trail is not getting set. if i switch to bartik it works as expected.

liquidcms’s picture

Version: 7.x-3.1 » 7.x-3.x-dev

tried latest 3-dev and still busted.

liquidcms’s picture

Version: 7.x-3.x-dev » 7.x-4.x-dev

and 4.x-dev also broken

liquidcms’s picture

i think it is actually Delta Blocks or Delta that is causing the breadcrumb to be rendered long before custom breadcrumbs can define the trail. don't know enough about how delta and omega tie in together to know what the solution for this is.. will keep digging.

cferthorney’s picture

I had a similar issue when I was converting a zen D6 theme to Omega sub theme in D7. I couldnt change the separator the way i wanted it. I used themename_delta_blocks_breadcrumbs and coded my breadcrumb separator as I wanted it. I then used contexts and the delta blocks to position the breadcrumb where I wanted it. I also turned off breadcrumbs in the theme settings. I was using custom breadcrumbs to create the breadcrumb but I am sure you can use the drupal_set_breadcrumb() to produce the breadcrumb trail. I realise this is a work around rather than a fix and is not identical to your issue but it may help.

David

msmithcti’s picture

Assigned: fubhy » Unassigned
Status: Active » Closed (cannot reproduce)

Unable to reproduce this in the latest version of Omega 4.x which would suggest this has either been fixed somewhere along the line or was an issue with a module (e.g. delta).

Feel free to open for another version or if you have more information to reproduce it in Omega 4.

reptilex’s picture

so that you cannot reproduce it in 4.1 means it is broken still under 3.1 which is stable? Because I have the same issue in 3.1

Cellar Door’s picture

The issue here I think lies in Delta module: check out #1242130: Breadcrumb block generated too early; other modules can't modify breadcrumbs and see if that fixes your issues. I'll hopefully be rolling it into a new release in the near future

discipolo’s picture

Version: 7.x-4.x-dev » 7.x-4.0
Status: Closed (cannot reproduce) » Active

i have no delta or context or breadcrumb module installed and am using omega 4.0 for my subtheme. It seems drupal_set_breadcrumb isnt working in page.preprocess.inc.

emcniece’s picture

Confirming bug in 7.x-4.0-rc1 1378993635, no delta or context or breadcrumb module installed. SUBTHEME_breadcrumb() hook appears to never actually run.

BoySherman’s picture

Status: Active » Closed (works as designed)

I have verified the unusual behaviour when using drupal_set_breadcrumb, this however seems to be an uneeded function call. Instead of manipulating the breadcrumb via drupal_set_breadcrumb(), manipulate the breadcrumb variable directly in the breadcrumb preprocess. I have verified that this works with version 7.4

davidkronfeld’s picture

Issue summary: View changes

I had exactly experienced the same issue with Omega 4.4 installed.
1) theme function (defined in template.php) is not run
2) and file "breadcrumb.theme.inc" is not detected

Interestingly, if you remove the file "breadcrumb.theme.inc" in the OMEGA master theme, then the file "breadcrumb.theme.inc" is detected and processed correctly.

my 2 cts...