Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Link Target for "top" in breadcrumb


danrekshan

Recommended Posts

Posted

Hello,

 

Is there a way to add a link target for only the "top" in the breadcrumb.

 

My issue is that I have a website that uses a navigation frame, you can access content pages that are not in the oscommerce store and the store through it.

I'm linking the store to the website homepage, just in case a user directly accesses the store, he/she could click on the top in breadcrumb and get back to the main navigation scheme.

 

However, when top is clicked several times, the frames start to nestle. I need to add a "_top" target to the top link, but can't find it anywhere.

 

Thank you,

 

Daniel

Posted

/catalog/includes/application_top.php

 

Find:

 

  $breadcrumb->add(HEADER_TITLE_TOP, HTTP_SERVER);

Change to:

 

  $breadcrumb->add(HEADER_TITLE_TOP, tep_href_link(FILENAME_DEFAULT).  '" target="_top' );

I tried this. It worked for me.

 

BACKUP THE FILE BEFORE EDITING!!!

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

Or:

 

  $breadcrumb->add(HEADER_TITLE_TOP, HTTP_SERVER . '" target="_top' );

(the last code makes "Top" and "Catalog" link to the same place. This doesn't)

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted
Or:

 

  $breadcrumb->add(HEADER_TITLE_TOP, HTTP_SERVER . '" target="_top' );

(the last code makes "Top" and "Catalog" link to the same place. This doesn't)

 

The second one worked like a charm. Thank you so much!

 

Daniel

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...