ComicWisdom Posted October 30, 2006 Posted October 30, 2006 I would like to stop the categories menu from expanding when the top category is clicked. Instead, I would like the categories listed only in the content section of the page. If you go here: http://www.subnetmask.org/catalog/index.php you will see how ridiculous it looks when the subcategories appear in the left menu since I am using graphics for the categories. I would like the to NOT do that. Does someone out there know how? Just between us, remember there are only 10 kinds of people in the world; those who understand binary and those who don't!! Remember, learning is a "do-it-yourself" experience; although, not necessarily a "do-it-BY-yourself" experience. The quickest way to learn is to forget to BACKUP!
ComicWisdom Posted October 30, 2006 Author Posted October 30, 2006 Forgot to mention "A" is the only category with anything in it!!! :blush: Just between us, remember there are only 10 kinds of people in the world; those who understand binary and those who don't!! Remember, learning is a "do-it-yourself" experience; although, not necessarily a "do-it-BY-yourself" experience. The quickest way to learn is to forget to BACKUP!
bill110 Posted October 30, 2006 Posted October 30, 2006 I would like to stop the categories menu from expanding when the top category is clicked. Instead, I would like the categories listed only in the content section of the page. If you go here: http://www.subnetmask.org/catalog/index.php you will see how ridiculous it looks when the subcategories appear in the left menu since I am using graphics for the categories. I would like the to NOT do that. Does someone out there know how? catalog/includes/boxes/categories.php find this code: //------------------------ if (tep_not_null($cPath)) { $new_path = ''; reset($cPath_array); while (list($key, $value) = each($cPath_array)) { unset($parent_id); unset($first_id); $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$value . "' and c.categories_id = cd.categories_id and cd.language_id='" . (int)$languages_id ."' order by sort_order, cd.categories_name"); if (tep_db_num_rows($categories_query)) { $new_path .= $value; while ($row = tep_db_fetch_array($categories_query)) { $tree[$row['categories_id']] = array('name' => $row['categories_name'], 'parent' => $row['parent_id'], 'level' => $key+1, 'path' => $new_path . '_' . $row['categories_id'], 'next_id' => false); if (isset($parent_id)) { $tree[$parent_id]['next_id'] = $row['categories_id']; } $parent_id = $row['categories_id']; if (!isset($first_id)) { $first_id = $row['categories_id']; } $last_id = $row['categories_id']; } $tree[$last_id]['next_id'] = $tree[$value]['next_id']; $tree[$value]['next_id'] = $first_id; $new_path .= '_'; } else { break; } } } and either delete or comment it out. My Contributions Stylesheet With Descriptions Glassy Grey Boxtops Our Products Meta Tags On The Fly Password Protect Admin "No matter where you go....There you are" - Buccaroo Bonsai
ComicWisdom Posted October 30, 2006 Author Posted October 30, 2006 Thank you! It's a perfect fit. Just between us, remember there are only 10 kinds of people in the world; those who understand binary and those who don't!! Remember, learning is a "do-it-yourself" experience; although, not necessarily a "do-it-BY-yourself" experience. The quickest way to learn is to forget to BACKUP!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.