Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Hmmm..editing the breadcrumb appearance?


Guest

Recommended Posts

Hello,

If I wanted to put the breadcrumb trail somewhere else, like in an info box, how would I change the appearance so instead of the trail showing like this:

 

Home>>Catalog

 

it showed like this:

 

Home..

Catalog..

Wherever

 

Any ideas? Any help is appreciated! :)

Link to comment
Share on other sites

You know you can get rid of that if you want. I do it all the time. Here's an example. http://www.partytimeproducts.com/catalog/default.php

Just make a backup of your files and remove some of the code that makes up the breadcrumb navigation. Once you figure out what to remove, just do a global search and replace to remove it from every page. It may not be advised, but I've never had a problem doing this. Hope it helps.

Link to comment
Share on other sites

whenever you call the breadscrumb object to output something you can specify the 'seperator'. Change that into a <br> and you should sort of have what you want:

 

$breadcrumb->trail('<br>');

 

HTH

Mattice

"Politics is the art of preventing people from taking part in affairs which properly concern them"

Link to comment
Share on other sites

And for further control you can use the $breadcrumb->_trail variable, which is an array holding the relevant data.

 

Look at the trail() method in the class source file to get an idea of whats possible.

 

catalog/includes/classes/breadcrumb.php

:heart:, osCommerce

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...