I noticed that if calling Item.Level, the value returned is always "1", where I would expect it to match the actual level of the item in relation to the whole Tree.
A test example:
Here is a menu with a "DisplayTitle" property shown (manually added by myself to each menu item)
Notice that the tagged level information is shown correctly here.
I noticed that if calling
Item.Level
, the value returned is always "1", where I would expect it to match the actual level of the item in relation to the whole Tree.A test example:
Here is a menu with a "DisplayTitle" property shown (manually added by myself to each menu item)
Notice that the tagged level information is shown correctly here.
The raw data stored for this property:
The "level" is recorded properly here.
I am using ModelsBuilder to return strongly-typed models:
In a front-end View file, I created some code to render out the Menu values:
And this is what is rendered:
Notice that "Level" is ALWAYS 1.