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?
Using Page titles in breadcrumbs?
-
jelle
Re: Using Page titles in breadcrumbs?
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.
-
Glenn
Re: Using Page titles in breadcrumbs?
Yes I figured that much out, I'm just trying to figure out how. Thanks anyway.
-
calguy1000
- Support Guru

- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: Using Page titles in breadcrumbs?
doing a search should help. Another user posted recently, a patched version of the breadcrumbs plugin for use in this very way.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
-
Glenn
Solution: Using Page titles in breadcrumbs
Okay, I figured it out:
Instead of the default:
I just used:
et viola!
Instead of the default:
Code: Select all
$trail .= ($onecontent->MenuText()!=''?$onecontent->MenuText():$onecontent->Name());Code: Select all
$trail .= ($onecontent->MenuText()!=''?$onecontent->Name():$onecontent->Name());