-
Re: Categories Dressing
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.
-
Re: Categories Dressing
gjh42 - Yeah, I'll try the new version! I have a test site that I can install it on and test out.
Let me know when that zip will be available, thanks.
-
Re: Categories Dressing
I've been away - will post the zip later today after I get some sleep:)
-
Re: Categories Dressing
k, sounds good, sleep well :)
-
Re: Categories Dressing
Hello, I have a question about your mod...
I would like to HIDE the TOP category, SHOW the 1st subcategories (always) and SHOW the additional subcategories ONLY when the 1st subcategories are selected...
Is this possible? Am I being clear with my request?
Thank you!!
-
Re: Categories Dressing
Yes, you would uncomment and set this in categories_dressing_defines.php:
define('CAT_BOX_ACTIVE_LEVEL', '4|1|1');
-
Re: Categories Dressing
COOL!!
Which one do I use? You've suggested two? Should I just try them both out? Thank you for the prompt response!
-
Re: Categories Dressing
Hello, it's me again.
So this adjustment made my 2nd, etc. subcategories visible when the first categories are selected...
However, for the TOP categories, instead of being hidden, it's popping up with a total: example: Gift Certificates (5) now.
I want the TOP category to stay hidden. Always.
-
Re: Categories Dressing
Try option 5 instead of 4 - I think that will get what you want here.
'5|1|1'
-
Re: Categories Dressing
Uh oh...with that option my entire sidebox goes blank...any other ideas?