Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Breadcrumbs


longhorn1999

Recommended Posts

Posted

Hi,

 

I made a simple page of random articles on my site by just copying the shipping page (shipping.php and includes/languages/english/shipping.php) and customizing it with the proper links. I put these articles into this page using basically the same method.

 

But though the main articles page has a breadcrumbs trail of 'Home - List of Articles', the actual article pages have a trail like 'Home - Article Title 1', whereas I'd like it to be 'Home - List of Articles - Article Title 1'.

 

 

This is the standard format for breadcrumbs in all information pages:

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

 

NAVBAR_TITLE is defined as Article Title 1 here.

 

I wasn't able to find a clear answer elsewhere in the forum, but what would I add to this code to insert the extra link in the breadcrumb?

 

Thanks

Posted

Include a second $breadcrumb statement, somewhere after the first. It should be formatted something like this:

 

$breadcrumb->add('Article Title 1', tep_href_link(...));

where you should replace "..." with the appropriate tep_href_link() parameter(s) that will create a direct link to the article.

 

.

Check out Chad's News.

Posted

Include a second $breadcrumb statement, somewhere after the first. It should be formatted something like this:

 

$breadcrumb->add('Article Title 1', tep_href_link(...));

where you should replace "..." with the appropriate tep_href_link() parameter(s) that will create a direct link to the article.

 

.

 

Thanks Chad! That did the job...

Archived

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

×
×
  • Create New...