Using Page titles in breadcrumbs?

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
Glenn

Using Page titles in breadcrumbs?

Post 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?
jelle

Re: Using Page titles in breadcrumbs?

Post 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.
Glenn

Re: Using Page titles in breadcrumbs?

Post by Glenn »

Yes I figured that much out, I'm just trying to figure out how. Thanks anyway.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Using Page titles in breadcrumbs?

Post by calguy1000 »

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.
Glenn

Solution: Using Page titles in breadcrumbs

Post 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!
Locked

Return to “CMSMS Core”