Options

breadcrumb extension

johagerjohager Registered Users Posts: 13 Big grins
I'd like to change the breadcrumbs to include a "higher level" than my current SmugMug home because my SmugMug home (jameshagerphoto.smugmug.com) is a page off of my regular URL (www.jameshagerphoto.com).

So, instead of

"James Hager Photography [linked to "/"] > North America [the current page]"

I'd like to have

"Home [linked to www.jameshagerphoto.com] > Image Categories [linked to "/"] > North America [the current page]"

Comments

  • Options
    johagerjohager Registered Users Posts: 13 Big grins
    edited January 14, 2008
    bump

    Note that the root level of my SM breadcrumb is now "Stock Galleries Home", and I want to add another level above that.
  • Options
    wellmanwellman Registered Users Posts: 961 Major grins
    edited January 17, 2008
    johager wrote:
    bump

    Note that the root level of my SM breadcrumb is now "Stock Galleries Home", and I want to add another level above that.
    Not sure of the exact syntax, but you should be able to do a find-and-replace with Javascript.

    Find this:
    [html]<a href="/" class="nav">Stock Galleries Home</a>[/html]
    And prepend that string with your new root.
  • Options
    johagerjohager Registered Users Posts: 13 Big grins
    edited January 29, 2008
    OK.

    Can someone help me with the exact syntax?

    I've tried it with several variations like the following, based on the "change the pesky pipes in the footer" code, and I keep getting the standard breadcrumbs.

    YE.onAvailable("altViews", function() {this.innerHTML = this.innerHTML.replace(/Stock Galleries Home<\/a>/gi, 'Home > Stock Galleries Home');});
  • Options
    johagerjohager Registered Users Posts: 13 Big grins
    edited February 3, 2008
    bump
Sign In or Register to comment.