Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Amending the Breadcrumbs script


gary1106

Recommended Posts

I want to change the breadcrumbs script to incorporate other possible locations above "top" other than "catalog". for example "top>>catalog", AND "top>>educational resource".

 

My orginal idea was for a scipt in the application_top.php to check which file it was currently included in and add the correct link. ie.

 

$CurrentDocumentName =$PHP_SELF;

 

If ($CurrentDocumentName = "/catalog/test.php")

{

add catalog breadcrumb

}

elseif ($CurrentDocumentName = "/catalog/education.php")

{

add education breadcrumb

}

 

but this doesn't seem to work. Would $PHP_SELF refer to applicaton_top file or the file that includes the application_top file?

 

any help would be appreciated

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...