autoace - I have been looking at the cat_active_level_manage() function, and the feature you want is built into version 2.8 (not yet released - it has one IE bug I haven't been able to correct yet).
Add a new case to the switch in the function:
PHP Code:
case 6://like 2, active branches only
if($cPath_top == 0){//test
$test_level = 1;
} elseif ($cPath_top == $path_top){
if ($cat_depth >= 2){//only test sub-subcats+
if (!in_array(cat_path_parent($path),explode('_',$_GET['cPath']))) $skip_cat = 1;//show only subcats w parent in $cPath
}
} else {//if not active test for level
$test_level = 1;
}
break;
You can use this to set the highest and deepest levels for any page where there is no category selected, including the home page.
Mmm... this function now depends on one or two functions/variables that are not in the current v2.7.3. If you would like to try v2.8, let me know and I'll post a zip for you. It does have an issue with replaced category images shifting to the right in IE7, but otherwise works fine as far as I can tell.
Bookmarks