Check for last chilld in menu.
Posted: Thu Sep 24, 2009 7:24 pm
I'm very close to finishing a menu that I've struggled with for a very long time. I have a menu something like this
1.1
1.2
1.3
2.1
2.2
3.1
3.2
3.3
3.4....
Is there any way to check with a {if} statement if a page is the last child in a menu?
Basically I want to close a div when I hit the last page in a sub list. In this instance 1.3, 2.2, 3.4.
I open the div whenever there is a new parent, but need to close it after the last child.
1.1
1.2
1.3
2.1
2.2
3.1
3.2
3.3
3.4....
Is there any way to check with a {if} statement if a page is the last child in a menu?
Basically I want to close a div when I hit the last page in a sub list. In this instance 1.3, 2.2, 3.4.
I open the div whenever there is a new parent, but need to close it after the last child.