Menu Item hierarchy?

Topics: Troubleshooting, Writing themes
Feb 5, 2014 at 12:16 PM
I'm trying to override default behavior for menu item rendering and there is one thing bothering me.

I have a menu widget and I'm trying to figure how the items in
are connected. To be more specific, I'd like to figure out what makes an item a 2nd level item.

Here is relevant structure:

gives me list of all 5 items and I've been looking trough the structure and cannot figure out how should I recognize structure... I thought that maybe item might have Parent property with ParentMenuItem but all of them have complete menu in the "Parent"

Any suggestions?
Feb 6, 2014 at 7:27 AM
I've figured it out...

MenuItem objects have property named Position that depicts item position of the specific item in the menu.

Marked as answer by talfirevic on 2/6/2014 at 12:27 AM