PDA

View Full Version : Customise your category Tree


Andy
20-11-07, 13:51
I've seen ALOT of post where people have wished they could customise their category tree. many from people claiming they know HTML, but not PHP.

fair enough. If you know HTML, here's a solution.

the code attached contains every AffWin category, child category and grandchild category nested together in a HTML ul.

I think it is complete. You just have to delete what you don't need.

Granted there's still some work for you to do, but I've done the hard work by researching the category structure, finding all children/grandchildren, finding their ID's, typing the lot out character by character, even adding comments so you know what each link does and where it belongs :D

Download the .zip folder

Don't forget to scan it for viruses. you don't know me remember!!

extract it and open up "category_tree.tpl" in your editor.

Delete everything you don't need and upload to templates/Your_Template/elements/category_tree.tpl. Make sure you save your old category_tree.tpl incase you need it later.

A good use for this file is to use Javascript to open each nested list or children when the Parent cat is clicked, and similar with the grandchildren.

It works very well with a JS tree menu.

Hope this helps

Andy

the-ferret
20-11-07, 20:30
Andy

Not sure how/if I will use it yet but wanted to be the 1st to say thanks for the contribution. Good to see that we can still share despite all chasing the same traffic. I will try to do something worthy of posting myself.

Graham

Adrian
20-11-07, 23:04
Hi Guys,

Just to say I totally agree, is very nice to see users posting ideas and code in order to help out others..... Im sure many of you will indeed find it useful in some way or another. You're right in saying its a question thats been raised many times before, hopefully most of you can now use this as a solution.

Nice work Andy, well done :D

Regards,

Adrian
SW Integration & Technical Support

adrian.botelho@digitalwindow.com
www.digitalwindow.com