I checked on a site with less that 10 cats, this one use 30 queries less than the built it. That's understandable. The built in is expected to gain great improvement on v1.4.
Printable View
I have just installed your mod category tree and I am trying to work out how I can use the following function to display my products.
retrieve_deepest_cats_array($categories_id)
Ive been looking at index header_php and the main_template_vars.php pages to try and display products using this function when the category is nested rather than show categories.
I am having no luck so far and I suspect its out of my depth. Am I either on the right track?
At least I know it is possible somehow :clap:
You are on the right track.
Still not having any luck with displaying all the sub-cat products - I'm seriously out of my depth. :huh:
Any chance you will be releasing the code to do this?
I will soon ^^. Too busy.
Yellow1912 - very excited to see this. Unfortunately I'm also out of my depths, and will be looking forward to seeing any updates that you post.
FYI to those using other category tree mods, this might not be a simple installation - I've been reviewing my own files (I'm running Better Categories mod), I suspect it would take some additional knowledge on my part to integrate this solution. *sigh*
Having looked at the mod files, it appears that it will require a completely different approach to getting effects like BetterCategories or Categories Dressing allow. The tpl_categories substitute does nothing but output the content built in the class, so modification (other than what CSS can do) would have to be done at the class or function level.
I'm interested in working on this, but it will be a while before there may be any results to share. I also don't want to spend a lot of time on this only to have it rendered obsolete soon by v1.4. (I expect the current Categories Dressing to require major reworking for v1.4 anyway.)
That's why the class has a function to return the whole tree as an array, which you can do whatever you want with it. You can also have part of the array returned to you as well. And then in your template file, process the array and make it appear just the way you want it to^^.