Hi
I have a multilevel menu, like in the code block below. This menu is represented like nested <ul>s and <li>s1. How would you store that in a database? 2. How would you generate the <ul>s and <li>s needed to build that menu structure using Smarty template engine?Code:1
2
2.I
2.II
3
3.I
3.I.i
3.I.ii
3.II
I only want to use standard Smarty functions, and I don't want to use template inclusion based recursion as that's too slow.
Any help on either 1, 2, or both is greatly appreciated :)
EDIT: I should point out that the menu structure is rather dynamic with stuff being added and removed from anywhere in the structure all the time. So both the database structure and the template needs to be able to handle that.
