Originally Posted by
magneteye
Does the above remove ALL subcategories? I actually just want to display parent, and subcategories, but not any of the sub categories child categories. Any thoughts?
You could try this:
in tpl_drop_menu.php
comment out in this section:
PHP Code:
require_once (DIR_WS_CLASSES . 'categories_ul_generator.php');
$zen_CategoriesUL = new zen_categories_ul_generator;
$menulist = $zen_CategoriesUL->buildTree(true);
$menulist = str_replace('"level4"','"level5"',$menulist);
$menulist = str_replace('"level3"','"level4"',$menulist);
$menulist = str_replace('"level2"','"level3"',$menulist);
$menulist = str_replace('"level1"','"level2"',$menulist);
these lines:
PHP Code:
require_once (DIR_WS_CLASSES . 'categories_ul_generator.php');
$zen_CategoriesUL = new zen_categories_ul_generator;
$menulist = $zen_CategoriesUL->buildTree(true);
//$menulist = str_replace('"level4"','"level5"',$menulist);
//$menulist = str_replace('"level3"','"level4"',$menulist);
//$menulist = str_replace('"level2"','"level3"',$menulist);
$menulist = str_replace('"level1"','"level2"',$menulist);
If this is a subcategory to many, remove the //from the lowest of 3 lines.
Works for me.
just a note: this is without the new function. Just the original files.
Bookmarks