Query to Unordered/Ordered List with hierachy
Dec 12, 2009
This has been bugging me for ages - how to take a query object, and loop it into an unordered/ordered list, with the script working out when the various 'LI' and 'UL' elements should be closed or opened.
I didn't want to specify a parent item in the query, all I wanted to do is specify the depth - i.e how many levels from the top the LI element is.
So here, for the greater good (or bad, depending if you like/agree with my code) is my solution....
http://www.oxalto.co.uk/demos/list/
Ideas on how I might improve this to be more efficient welcomed!

Mark Flewellen wrote on 12/13/09 7:26 PM