Hi, I'm trying to create an HTML list (UL) out of a nested set tree, to create a menu from it. After spending 6+ hours and spinning my head I still couldn't find a good solution. I Googled every where without any luck.
Start by passing the tree root to the method. In the method, open the UL, fetch all children, and for every child, create an LI. If the child is not a leaf node, don't close with /LI, but recurse first, inserting a nested UL for that node. And so on...