sallyvigar Posted March 26, 2006 Posted March 26, 2006 Hello anyone who can help me?! I need some assistance with setting up my Categories and Subcategories. Since I introduced Sub Categories - they have taken all the style elements and stripped the main Categories. see my site: www.butterfliesanddragons.co.uk/index.php (not launched yet - still a way to go) But you will see that all looks fine on the home page - but when you click on a category there is no main heading - and just the sub categories names (I know how to put the pic's in) - so how do I put the main category heading in? When you click on a sub category - this works just fine and uses the format with the pink heading... help - I dont know where to start (and its getting late and the clocks go forward ... argh!) thanks in advance to anyone who can help Sally :(
Wendy James Posted March 26, 2006 Posted March 26, 2006 Looks like (guessing here) that you are missing the breadcrumb trail (and the table you put it in) for the part of the index.php that deals with categories with subcategories. If you are looking at your code in an editer, it would be the first chunk of code. The middle section deals with categories with no subcategories or the sub categories themselves and the last section deals with the main front page. Not sure if that will make sense or not but without seeing your code I can't really suggest anything else. Maybe someone else will come along that can. Wendy James Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
sallyvigar Posted March 26, 2006 Author Posted March 26, 2006 HI Wendy - thanks for replying - Here is my breadcrumb file...... <?php /* $Id: breadcrumb.php,v 1.3 2003/02/11 00:04:50 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ class breadcrumb { var $_trail; function breadcrumb() { $this->reset(); } function reset() { $this->_trail = array(); } function add($title, $link = '') { $this->_trail[] = array('title' => $title, 'link' => $link); } function trail($separator = ' - ') { $trail_string = ''; for ($i=0, $n=sizeof($this->_trail); $i<$n; $i++) { if (isset($this->_trail[$i]['link']) && tep_not_null($this->_trail[$i]['link'])) { $trail_string .= '<a class=ch1 href="' . $this->_trail[$i]['link'] . '">' . $this->_trail[$i]['title'] . '</a>'; } else { $trail_string .= $this->_trail[$i]['title']; } if (($i+1) < $n) $trail_string .= $separator; } return $trail_string; } } ?> Can you see anything that I am missing / need to add!? Thanks So much
Recommended Posts
Archived
This topic is now archived and is closed to further replies.