Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Looking for a suggestion regarding the breadcrumb


blr044

Recommended Posts

I moved the breadcrumb from header to the content area as seen below:

 

You're currently on:

* Home » Fry Pans » 3pc Aluminum Fry Pan Set

 

 

But am trying to get the last/present link so as now line underneath the text, for example something like this:

 

You're currently on:

* Home » Fry Pans » 3pc Aluminum Fry Pan Set

 

 

This is what is located in stylsheet.css:

 

.header-nav-container {width: 780px; margin: 0 auto; padding: 2px 0 0 0; margin-left:-10px; }
.header-nav-container .info-box01 {float: left; font-size: 1.4em; color: #443113; }
.header-nav-container .info-box01 a:link, .header-nav-container .info-box01 a:visited { text-decoration: underline; color: #4f4221;}
.header-nav-container .info-box01 a:link, .header-nav-container .info-box01 a:active { text-decoration: none; color: #4f4221;}
.header-nav-container .info-box02 {float: right; font-size: 16px; color: #EAE9D2;}
.header-nav-container .info-box02 span { color: #AFC336; }

.header-nav { width:760px; margin-top: 0 auto; }

/* Breadcrumbs */
.breadcrumbs {  margin-bottom:0; font-size:1.15em; line-height:1.25em; }
.breadcrumbs li { display:inline; }

 

Andin catalog/includes/template_top.php at the bottom:

 

<div id="bodyContent" class="grid_<?php echo $oscTemplate->getGridContentWidth(); ?> <?php echo ($oscTemplate->hasBlocks('boxes_column_left') ? 'push_' . $oscTemplate->getGridColumnWidth() : ''); ?>">

<div class="header-nav-container">
 <div class="header-nav">
  <div class="info-box01">
	  <div id class="no-display">You're currently on:
       <ul class="breadcrumbs">
         <li><?php echo '  ' . $breadcrumb->trail('  »  '); ?></li>
       </ul>
     </div>
   </div>
 </div>
</div>

<div class="clear"></div>

 

Thanks

Link to comment
Share on other sites

You need to edit 'application_top.php' and look for

 

// add the products name to the breadcrumb trail

 

you can then just change

 

$breadcrumb->add($model['products_name'], tep_href_link(FILENAME_PRODUCT_INFO, 'cPath=' . $cPath . '&products_id=' . $HTTP_GET_VARS['products_id']));

 

to

 

$breadcrumb->add($model['products_name']);

 

this removes the link.

 

Jlewis

Link to comment
Share on other sites

 

$breadcrumb->add($model['products_name']);

 

this removes the link.

 

Jlewis

 

Thanks, that took care of that. But did try to take it a little further. Also looked at // add category names or the manufacturer name to the breadcrumb trail

 

To explain this a little better, What am wanting to do, is whatever page I am on, "Present Page" regardless where I am, the text will not under scored. SAMPLE:

 

Home / Contact Us

Home / Resources / Home Contractors

 

So one can see the present/active will not be a link and the rest of the breadcrumb will be consider as a link. If this is even possible to be done.

 

Sorry if I've not explained this a little better.

 

Thank you.

Link to comment
Share on other sites

 

$breadcrumb->add($model['products_name']);

 

this removes the link.

 

Jlewis

 

Thanks, that took care of that. But did try to take it a little further. Also looked at // add category names or the manufacturer name to the breadcrumb trail

 

To explain this a little better, What am wanting to do, is whatever page I am on, "Present Page" regardless where I am, the text will not under scored. SAMPLE:

 

Home / Contact Us

Home / Resources / Home Contractors

 

So one can see the present/active will not be a link and the rest of the breadcrumb will be consider as a link. If this is even possible to be done.

 

Sorry if I've not explained this a little better.

 

Thank you.

Link to comment
Share on other sites

You will probably have to edit every file to achieve this. Remove tep_href where applicable eg. conditions.php

 

Replace

 

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

 

with

 

$breadcrumb->add(NAVBAR_TITLE);

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...