Qihun Posted May 27, 2007 Share Posted May 27, 2007 Hi ! I use "Top of the page" (link to the top of the page) contribution on my page and it's fine. this contribution adds new function to breadcrumb class I thought I can add this kind of link to categories name in the box, so when I click on a name in categories box this will place my page not from the very top of it but from the breadcrumb line I just do not want the logo in header always jump into the eyes. I want to show product listing right away . the function added to breadcrumb class as follows function getActualPath(){ return ($this->_trail[sizeof($this->_trail)-1]['link']); } and the the link used in original contribution ('<a href="'.$breadcrumb->getActualPath().'#top">'.TO_TOP.'</a>') I tried to add this part '.$breadcrumb->getActualPath().'#top" to categories string and I got "Call to a member function on a non-object in..." If any body willing to help I would really appreciate this. Miclosh Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.