jameso Posted June 22, 2003 Posted June 22, 2003 Hi, I'm trying to customise my header navigation (ie the breadcrumb). By default it looks something like this: Top ? Catalog ? Category ? Sub Category. I want to change it to look like this: Catalog ? Category ? Sub Category. ie remove the "Top ?" part from the breadcrumb. I've looked in /includes/classes/breadcrumb.php, but I just can't seem to work out how the "Top ?" portion of the breadcrumb is inserted. If anyone can help me with this I'd really appreciate it! Cheers, James
mugitty Posted June 22, 2003 Posted June 22, 2003 James; I'm not sure how to eliminate the call completely, but if you change (in catalog/includes/languages/english.php) define('HEADER_TITLE_TOP', 'Top'); to define('HEADER_TITLE_TOP', ''); the "Top" will not show any longer, but the separator (>>) will still appear in front of "Catalog" ... if you want to REALLY see something that doesn't set up right out of the box without some tweaking, try being a Foster Parent!
jameso Posted June 23, 2003 Author Posted June 23, 2003 Thanks for that mugitty, however it isn't quite what I want. I would like to remove the Top > completely. Thanks anyway!
jameso Posted June 23, 2003 Author Posted June 23, 2003 I just worked it out!! in includes/classes/breadcrumb.php: change: for ($i=0; $i<$trail_size; $i++) { if (tep_not_null($this->_trail[$i]['link'])) { $trail_string .= '<a href="' . $this->_trail[$i]['link'] . '" class="breadCrumbLink">' . $this->_trail[$i]['title'] . '</a>'; } else { $trail_string .= $this->_trail[$i]['title']; } if (($i+1) < $trail_size) $trail_string .= ' > '; } to: for ($i=1; $i<$trail_size; $i++) { if (tep_not_null($this->_trail[$i]['link'])) { $trail_string .= '<a href="' . $this->_trail[$i]['link'] . '" class="breadCrumbLink">' . $this->_trail[$i]['title'] . '</a>'; } else { $trail_string .= $this->_trail[$i]['title']; } if (($i+1) < $trail_size) $trail_string .= ' > '; } ie. make the for loop start at 1 i = 1, not 1=0. I can't believe I didn't think of this last night! I guess I just needed some sleep.
Guest Posted July 31, 2003 Posted July 31, 2003 Thanks this really helped me out Because I have osC in a frame and it kept putting the whole webiste in there when I hit the top link!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.