Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

creating breadcrumbs for a new 2nd level page


v-funk

Recommended Posts

Posted

I sucessfully made a new page following the intructions in WIKI & on the forum, by copying shipping.php etc. etc. Worked fine, let's call the new file "about_us.php" now I want to link another new file from the about us page - let's call that one "enquire.php" - but I want the breadcrumbs to read Home>About Us> Enquire instead of just Home>Enquire which is what I'm getting.

 

Is there any way of configuring the breadcrumbs on the enquire.php file so it will follow the right path???

Posted

If I'm understanding you, then you should be able to add another 'item' to the breadcrumb trail, so you would have two breadcrumb declarations in you sub-level file i.e

 

$breadcrumb->add( 'ABOUT US', HTTP_SERVER);

$breadcrumb->add( 'ENQUIRE', tep_href_link(FILENAME_DEFAULT));

 

(the example is from application_top.php, so need to sort the links out).

"Any fool can know. The point is to understand." -- Albert Einstein

Posted

Great, Thankyou that put me on the right track

 

In the enquire.php file I added the line

 

$breadcrumb->add( 'About Us', tep_href_link(FILENAME_ABOUT_US));

 

above where it says

 

$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_ENQUIRE));

 

& it worked! :)

Archived

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

×
×
  • Create New...