I have an navigation.xml
file, where I have a simple menu, with a submenu within the <pages>
tag.
The submenu is working well, except when I have addition $_GET
params which are in the url.
Like this: admin/manage/pages/id/1
<-- With this url the submenu is not showing
Link explained:
{module}/{controller}/{action}/{key}/{value}
I think I have no more information, because my setup is just basic, and the behavior strange.
Hopefully you have an idea where this is going wrong.
Bytheway: I use the default routes.
Edit: I use the following code for displaying the submenu's $this->navigation()->menu()->setMaxDepth(0);
(both code suggestions from ArtWorkAD did not work)
Here's my navigation.xml:` Website /
<beheer>
<label>Beheer</label>
<module>admin</module>
<controller>beheer</controller>
<uri>/admin/beheer</uri>
<pages>
<paginabeheer>
<label>Pagina beheer</label>
<module>admin</module>
<controller>paginabeheer</controller>
<action>index</action>
**//THE CODE BELOW IS ADDED ON ArtWorkAD's SUGGESTION**
<pages>
<paginabeheer>
<label>Pagina beheer</label>
<module>admin</module>
<controller>paginabeheer</controller>
<action>index</action>
</paginabeheer>
</pages>
**// END ADDED CODE**
</paginabeheer>
</pages>
</beheer>
</nav>
`