Sorry, I didn't test the code and there were a few typos in the first codeblock; try again (re-copy paste), it should work now.
I also added the 'active' class to active item & 'dropdown' class to submenu's now. As for currentpath, it's the same as doing
I also added the 'active' class to active item & 'dropdown' class to submenu's now. As for currentpath, it's the same as doing
li.active a
in CSS I guess. I don't know what 'activepath' is for.