Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Creating Additional Breadcrumbs


Guest

Recommended Posts

I had created a series of new HEADER_TITLE_ 's in /catalog/includes/languages/english.php for additional breadcrumbs. But for some reason it didn't work and I don't understand why.

 

I created the following in english.php

 

define('HEADER_TITLE_COMICNEWS', 'Comic News');

define('HEADER_TITLE_WEBFORUMS', 'Web Forums');

define('HEADER_TITLE_AUCTION', 'Auction Block');

 

Then in /catalog/includes/application_top.php I added them to the breadcrumb list like so:

 

$breadcrumb->add(HEADER_TITLE_TOP, HTTP_SERVER);

$breadcrumb->add(HEADER_TITLE_CATALOG, tep_href_link(FILENAME_DEFAULT)

$breadcrumb->add(HEADER_TITLE_COMICNEWS, HTTP_SERVER);

$breadcrumb->add(HEADER_TITLE_WEBFORUMS, HTTP_SERVER/forums/);

$breadcrumb->add(HEADER_TITLE_AUCTION, HTTP_SERVER/auction/));

 

 

But I get a big parse error when I try to load the main catalog page after that. Obviously I'm doing something wrong, but this looked like the right way to do it... is there someway else to add additional breadcrumbs?

 

Thanks.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...