Breadcrumb code

Where is the code (which files, and if a huge file, where in the file) that controls/creates the "breadcrumb" links (Home > User1 > Friends) in the horizontal bar just beneath the sub-menu bar?

That was the question. The rest of this is just my reason why, for those interested (and so people don't post asking me to be more specific!). There are two reasons I want to find that, so I can change that...(1) I want to change the hyperlink associated with the "root" breadcrumb (which usually says "Home") - that is, in the breadcrumb menu, the term that is all the way to the left. By default I believe this is simply set to the root of your site, but I would like to change it to "mysite.com/index.php" (which is not the default page of my site...my default page is "mysite.com/index.html" which is a welcome page that in turn forwards to /index.php on a button click). And (2) I wanted to change the terms used in some of those places and the language settings wouldn't let me differentiate enough, and I thought I'd at least like to look at how that breadcrumb is put together.

Quote · 28 Jan 2010

Nobody knows?  Frown

Quote · 28 Jan 2010

I believe you'll find what you're looking for in the     function genBreadcrumb  which is in the file /templates/base/scripts/BxBaseMenu.php


function genBreadcrumb($aPath = array()) {
$sRootItem = '<a href="' . $this->sSiteUrl . '">' . _t('_Home') . '</a>';

My opinions expressed on this site, in no way represent those of Boonex or Boonex employees.
Quote · 28 Jan 2010

Hey thanks. I appreciate you finding that.
Unfortunately, I'm not sure how I would change the url from "mysite.com" to "mysite.com/index.php".

I guess I'd have to add the "/index.php" in there somehow.
Now don't laugh, but is it possible to insert the extra part of the URL in, something like (but I'm sure not exactly this):

function genBreadcrumb($aPath = array()) {
$sRootItem = '<a href="' . $this->sSiteUrl . '/index.php">' . _t('_Home') . '</a>';

I know, just tossing that out there to make the point...probably totally silly to a php person.
Anybody know how I would change that from the site's root dir to using my Dolphin home page /index.php?

- Mishka

Quote · 28 Jan 2010

Try changing the second line to this:

$sRootItem = '<a href="' . $this->sSiteUrl . 'index.php">' . _t('_Home') . '</a>';

My opinions expressed on this site, in no way represent those of Boonex or Boonex employees.
Quote · 28 Jan 2010

Brilliant!!

I made the change you suggested, and damn if that link didn't just fall right in line! Exactly what I was looking for.

I hope nothing else calls that function, which might mess something up...I poked all around the site clicking other links and it sure looks like things are right. Hopefully since it was within the part of the file that dealt with 'breadcrumb' stuff, that it is localized just to that. Seems to be.

Well anyway, thanks for the help Houston. You rock.

It would probably be good in the next version to make that link defineable (is that a word?), somewhere in settings you can tell Dolphin what you want the "home" link to point to. Just sayin'. But hey, I'm all set now! Cool

Quote · 28 Jan 2010
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.