Project:Custom breadcrumbs
Version:6.x-2.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

Hi - thanks for this useful module.

This might be a feature request or it might just be a request for info.

I wanted to have a breadcrumb which didn't include the initial "home" link. I looked around and couldn't see a "proper" way to do this - correct me if I'm wrong. (But I am using 6.x-1.4 and maybe it's in 6.x-2.x-dev under "pages at arbitrary paths", is it??)

Instead I tried commenting out line 55 of custom_breadcrumbs.module, i.e. where it initialises $trail:

$trail = array(l(t('Home'), ''));

This seemed to do the trick. But obviously hacking is bad and wrong :-)

If something similar isn't already in the new dev iteration (or if it is, but in a more complicated way) then please could we have a ticky box above the "Titles" and "Paths" fields, for "auto-include home page link as first crumb"? or something like that?

This could either be global (in which case you'd have to put in your own home page link if you wanted it part of the time) or specific to each customisation entry.

Thanks for considering this, &/or for any other tips on best way to accomplish the same result...

Jennifer

Comments

#1

As an addendum: I just realised/remembered that there's a way to get rid of all the "home" links in breadcrumbs via the theme configs. But that seems to not let you put any of them back. So it still doesn't give you a way to have home links some of the time and other times not. Unless I'm mistaken, which is quite possible :-)

#2

::tinkers some more::

actually, unticking the theme-specific "no home page link" ticky box seems to be eating the first link/title pair regardless of whether it actually is the home page or not. It's not expecting my hack...

so those aren't gonna play nicely together.

so yeah, feature request still stands for now, if not in 6.x-2.x-dev already. but would need to come with a little warning about that interaction.

#3

Version:6.x-1.4» 6.x-2.x-dev
Status:active» fixed

Thanks Jennifer_M. This is already in 6.x-2.x-dev as a global setting at admin/settings/custom-breadcrumbs. Its an option provided by the base custom_breadcrumbs module, so it applies to all breadcrumb types.

#4

Thanks for the info. That's great!

I'll be contented with awaiting a stable 6.x-2 then :-)

#5

Status:fixed» closed (fixed)

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