Page 1 of 1

Using Page titles in breadcrumbs?

Posted: Fri Mar 17, 2006 5:14 pm
by Glenn
Anyone know of a way to use page title in breadcrumbs instead of menu text? Why would you want to do that you ask? Here's an example:

The client wants very descriptive menu text, and there is room for it in the navigation menus, but not in thebreadcrumbs. Using the menu text the breadcrumbs becomes two lines in this case:

Connecting Schools and Community (CSAC) » CSAC Projects » Geographic Information Systems (GIS) » Why is GIS being offered to the teachers & students?

I'd like to use shorter page titles and use those in the breadcrumbs so it would look like this:

CSAC » CSAC Projects » GIS » Why is GIS being offered to the teachers & students?

Seems simple, but I can't figure it out. Any ideas?

Re: Using Page titles in breadcrumbs?

Posted: Fri Mar 17, 2006 6:38 pm
by jelle
I think you'll have to change plugins/function.breadcrumbs.php for that. It is not really like everybody else would need such a change.

Re: Using Page titles in breadcrumbs?

Posted: Mon Mar 20, 2006 5:39 pm
by Glenn
Yes I figured that much out, I'm just trying to figure out how. Thanks anyway.

Re: Using Page titles in breadcrumbs?

Posted: Mon Mar 20, 2006 5:50 pm
by calguy1000
doing a search should help.  Another user posted recently, a patched version of the breadcrumbs plugin for use in this very way.

Solution: Using Page titles in breadcrumbs

Posted: Mon Mar 20, 2006 6:01 pm
by Glenn
Okay, I figured it out:

Instead of the default:

Code: Select all

$trail .= ($onecontent->MenuText()!=''?$onecontent->MenuText():$onecontent->Name());
I just used:

Code: Select all

$trail .= ($onecontent->MenuText()!=''?$onecontent->Name():$onecontent->Name());
et viola!