![]() |
Showing all categories, subcategories and sub-subcategories
I had my home page redone to put the categories on top instead of on the side. Using code from stackoverflow.com I was able to show subcategories together with parent categories. I need to go down a level or two, and can't seem to figure it out. Any ideas?
The code I used is below: in include/common.php, I added the following under "Get categories menu data Code:
+ Code:
<ul> What do I do to go down further levels?? |
Re: Showing all categories, subcategories and sub-subcategories
Looking in /include/func/func.category.php:
Code:
function func_get_categories_list($cat = 0, $short_list = TRUE, $need_sublevel = FALSE, $max_level = 0) See that $max_level = 0 in the function arguments above? Looks to me like you are calling this function with this code: Code:
$extended_categories = func_get_categories_list(0, true, true, 1); So the last parameter you are feeding it is a 1, $maxlevel = 1. Try increasing it and see what you get. |
Re: Showing all categories, subcategories and sub-subcategories
v4.x - Up to 5 levels... ensure Modules > Flyout Menus is enabled + 'Cache the menu' is disabled.
Code:
<ul> |
Re: Showing all categories, subcategories and sub-subcategories
Thank you guys, I will see if we cna make this work.
PhilJ, can I do this without flyout menus? I am using customized design for my categories. |
Re: Showing all categories, subcategories and sub-subcategories
You can, but why bother, just use the code.
|
Re: Showing all categories, subcategories and sub-subcategories
Thank you PhilJ.
I got it working, now I just need to tweak the design to get it back to where I really need it, but all the information is now showing. |
Re: Showing all categories, subcategories and sub-subcategories
cool.
|
All times are GMT -8. The time now is 05:21 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.