I've been a HUGE fan of Advanced Menu, but I'm really liking the new Navigation features is 1.5.1. I'm doing a bit of customization in my theme and have a question.
Currently, I'm modifying MenuItem.cshtml. I'm adding a class to create a dropdown if the 1st level menu item has any children
This works great and any items under level 1 are populated in a dropdown.
I'd like to add a 3rd level so that my hierarchy looks like this
what I need to be able to do to achieve the correct styling, is if I'm at any level greater than 1 and there is an item in a level below it, I need to change the class I'm adding from "dropdown" to "dropdown-submenu".
Is this a possibility? Is there anything in the Model that can help me identify what level I'm at when rendering the item?
Thanks so much for the help!