eeleek Posted April 11, 2004 Posted April 11, 2004 HI, i noticed the trailer when a user browses the catalog. my concern is that I do not want <Home> to be there at the track at all. I would like it to start from <Catalog> I looked into header.php and saw "<?php echo $breadcrumb->trail(' » '); ?>" How can I modify / remove the home (modify to http://www.napogee.com) instead of my hosting companies website which it is currently pointing to ! thanks, eeleek. Ilan`
nrlatsha Posted April 11, 2004 Posted April 11, 2004 in application_top, look for this: // include the breadcrumb class and start the breadcrumb trail require(DIR_WS_CLASSES . 'breadcrumb.php'); $breadcrumb = new breadcrumb; $breadcrumb->add(HEADER_TITLE_TOP, HTTP_SERVER); $breadcrumb->add(HEADER_TITLE_CATALOG, tep_href_link(FILENAME_DEFAULT)); Change to this: // include the breadcrumb class and start the breadcrumb trail require(DIR_WS_CLASSES . 'breadcrumb.php'); $breadcrumb = new breadcrumb; // $breadcrumb->add(HEADER_TITLE_TOP, HTTP_SERVER); $breadcrumb->add(HEADER_TITLE_CATALOG, tep_href_link(FILENAME_DEFAULT)); HTH Noel 9 times out of 10 its a PEBCAK Error (Problem exists between chair and keyboard) Replace that and you're fine...
johnmc Posted April 11, 2004 Posted April 11, 2004 Hi, Eeleek! No - it's not! The 4th line of code has been "commented out"! John Mc
nrlatsha Posted April 13, 2004 Posted April 13, 2004 "In case" You want to add it back later... 9 times out of 10 its a PEBCAK Error (Problem exists between chair and keyboard) Replace that and you're fine...
Vince76 Posted December 19, 2004 Posted December 19, 2004 All this does is change the display "top >> catalog" to display "catalog", how do you remove it completely from showing up on the index page without removing it from the rest of the subpages? Cheers...
kagg Posted December 19, 2004 Posted December 19, 2004 Change following code in header.php: echo $breadcrumb->trail(' » '); to: if (basename($PHP_SELF) != FILENAME_DEFAULT) { echo $breadcrumb->trail(' » '); }
wongerbonger Posted January 21, 2005 Posted January 21, 2005 kagg all that code did was remove the Top >> Catolog is there anyway to redirect where the "Top" link goes?
boxtel Posted January 22, 2005 Posted January 22, 2005 HI, i noticed the trailer when a user browses the catalog.my concern is that I do not want <Home> to be there at the track at all. I would like it to start from <Catalog> I looked into header.php and saw "<?php echo $breadcrumb->trail(' » '); ?>" How can I modify / remove the home (modify to http://www.napogee.com) instead of my hosting companies website which it is currently pointing to ! thanks, eeleek. <{POST_SNAPBACK}> all done before: http://www.oscommerce.com/forums/index.php?showtopic=125724 Treasurer MFC
Vince76 Posted January 22, 2005 Posted January 22, 2005 kagg all that code did was remove the Top >> Catolog <{POST_SNAPBACK}> It did nothing when I added that code.. I am using sts by the way. Cheers
♥Vger Posted January 22, 2005 Posted January 22, 2005 Go to includes/classes/breadcrumb.php line 31 reads for ($i=0, $n=sizeof($this->_trail); $i<$n; $i++) { change it to for ($i=1, $n=sizeof($this->_trail); $i<$n; $i++) { You will keep the rest of the breadcrumb trail but lose the 'Catalog' link. Around 466 of includes/application_top.php rem out the 'Top' link like so //$breadcrumb->add(HEADER_TITLE_TOP, HTTP_SERVER); The 'Top' link is now permanently gone from the navigation, while the 'Catalog' link is just hidden by the fact that the trail only starts on the next link you click to. Vger
Vince76 Posted January 22, 2005 Posted January 22, 2005 Go to includes/classes/breadcrumb.php line 31 reads for ($i=0, $n=sizeof($this->_trail); $i<$n; $i++) { change it to for ($i=1, $n=sizeof($this->_trail); $i<$n; $i++) { You will keep the rest of the breadcrumb trail but lose the 'Catalog' link. Around 466 of includes/application_top.php rem out the 'Top' link like so //$breadcrumb->add(HEADER_TITLE_TOP, HTTP_SERVER); The 'Top' link is now permanently gone from the navigation, while the 'Catalog' link is just hidden by the fact that the trail only starts on the next link you click to. Vger <{POST_SNAPBACK}> Almost! Only problem is, is it removes the "catalog" link completely which is very useful to get back to the home page. I just don't want that link on index page but everywhere else... Anymore ideas? Cheers
♥Vger Posted January 22, 2005 Posted January 22, 2005 The link is called from application_top.php and breadcrumb.php, so "No" you can't just remove it from the index page. Problem solved! Vger
TCwho Posted January 22, 2005 Posted January 22, 2005 HI, i noticed the trailer when a user browses the catalog.my concern is that I do not want <Home> to be there at the track at all. I would like it to start from <Catalog> ..... All this does is change the display "top >> catalog" to display "catalog" :blink: :wacko: :wacko: The link is called from application_top.php and breadcrumb.php, so "No" you can't just remove it from the index page. Problem solved! Vger Vger is right. That is as close as your gonna get without modifying things that are not worth it for something like this or hiring a php programmer. Drop_Shadow How Did You Hear About Us Email HTML Order Link ---- GMT -5:00
Recommended Posts
Archived
This topic is now archived and is closed to further replies.