I am using a template to generate a menu for levels 0-1. I need to add a cap to the bottom of each level 1 list, so I test to see if the anchor belongs to last child, and add another list item with a cap style if it is. This works great until the level 1 child of the last level 0 item - for some reason the cap is not added. I've attached the template file and the menu generated from the template file. Any ideas on how to make this work? |