I might have missed this but .... is there an option to remove the home breadcrumb?
If not could an option be added?

Thanks,
Draven

Comments

devuo’s picture

Status: Closed (works as designed) » Active

Hello Draven,

Panels Breadcrumbs implements an hook that allows you to do just that. Simply add this to your theme template.php

function YOUR_THEME_MACHINE_NAME_menu_breadcrumb_alter(&$breadcrumb) {
  // Removes the first element from the Breadcrumb
  array_shift($breadcrumb);  
}

Alternatively, if you want to change 'Home' to something else, or link it to somewhere else you'll have to do something like this instead

function YOUR_THEME_MACHINE_NAME_menu_breadcrumb_alter(&$breadcrumb) {
  // If there's a breadcrumb defined
  if (!empty($breadcrumb)) {
    // We'll change the root crumb values
    $breadcrumb[0]['title'] = t('Website Root');
    $breadcrumb[0]['href'] = 'http://www.google.com';
  }
}
devuo’s picture

Status: Active » Closed (works as designed)
Draven_Caine’s picture

Ahh, i know it is "working as designed" I think this is a wonderful module and love a simple check box if possible. As I use panels, views and panels everywhere for alot of my project it would be helpful to just click a check box vs having to alter my theme tpl files as that works yes but its a much longer route to the same solution.

I am after the first options btw, just remove the home all together unless its on the home menu dropdown.

Maybe this could be added in the future?

Thanks,
Draven

devuo’s picture

Status: Active » Closed (fixed)

Added the requested feature to 7.x-1.3. Test it out.

Draven_Caine’s picture

Awsome,
Thanks again. I'll do a test run in the next few days.

Draven