autonav $navItem->level is always 1
Permalinkcode
$navItems = $controller->getNavItems();
foreach ($navItems as $ni) {
echo $ni->level;
}
ie this is what I believe I should see when I use $ni->level
home = $ni->level returns 1
products = $ni->level returns 1
product no.1 = $ni->level returns 2
product no.2 = $ni->level returns 2
sub product 1 = $ni->level returns 3
but it will always return 1 using the above code.
Thanks for the reply
What version of Concrete are you using and can you share the rest of the template code?