Your example is a very complex and custom-built categories menu group.
You could achieve the basic functionality of showing only the active branches of the active tree by modifying case 4 in categories_dressing_functions.php. Call it case 7:I'm getting cross-eyed now... time to take a break. Try this and see how it works. Use 7|1|9 in the define. Post a screenshot and description if it isn't what you want yet.PHP Code:case 7://like 3, active branches only, no tops, no collateral first subs
if($cPath_top == $path_top){
$path_ids = explode('_',$path);
if ($cat_depth == 0){ $skip_cat = 1; //no top cats
}elseif ($cat_depth ==1){//hide first subcats unless active or none selected
$cpath_depth = substr_count($_GET['cPath'],'_');
$path_current = $path_ids[count($path_ids)-1];
if (!in_array($path_current,explode('_',$_GET['cPath'])) and $cpath_depth >= 1) $skip_cat = 1;//show only subcats w parent in $cPath
}elseif ($cat_depth >= 2){//only test sub-subcats+
$path_parent = $path_ids[count($path_ids)-2];
if (!in_array($path_parent,explode('_',$_GET['cPath']))) $skip_cat = 1;//show only subcats w parent in $cPath
}
} else {//skip if not in active top
$skip_cat = 1;
}
break;


Reply With Quote

