am-impact / amnav

Navigation plugin for Craft

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Parent Item = Child Item

opened this issue · comments

As you can see on the screenshot, I have a parent Item "client portfolio" that refers to "clients". Same as the first child does. The Problem is that "activeNodeId" throughs out the ID of the child. That means that when I click in the Main Menu on "Clients Portfolio" the submenu is empty because it shows the childs of the child :) which is of course: none.

So, it would be great if the "activeNodeId" would point to the parent, not to the child.

bildschirmfoto 2017-07-16 um 15 52 51

I'm trying to understand your scenario, but why would you add your client portfolio twice?

The plugin tries to figure out which node is active, based on the current URL. With the getActiveNodeIdForLevel function, you can give in a certain segment level. Perhaps that helps with your scenario, but I'm afraid if it doesn't, I can't do much about it.