I have the following menu structure:
as you can see, the Item "Clients" points to the same Url as its Child "Client Portfolio" does.
Unfortunately this is not working for my submenu that should consist of the active menuitems childs:
{% set activeNodeId = craft.amNav.getActiveNodeIdForLevel('mainmenu','1') %}
{% if activeNodeId %}
{{ craft.amNav.getNav('mainmenu', {
class: 'subnav-inner',
startFromId: activeNodeId
}) }}
{% endif %}
The variable "activeNodeId" is always the deepest level child (with that url). So in my case, clicking on "Clients" would result in an activeNodeId = 66. Of course fetching the subitems of this makes no sense because "Client Portfolio" has no children.
Any idea how to force the plugin to take always the correct (parents) id? Or any other way to get the submenu items of the active menu?