getRequest(); $controller = $request->getControllerName(); $container = $this->view->navigation()->getContainer(); $submenu = $this->view->navigation()->findActive($container); if ($submenu != null){ $parentLabel = $submenu['page']->getParent()->getLabel(); foreach($container as $page){ if ($page->label == $parentLabel){ break; } $i++; } } return $i; } }