am-impact / amnav

Navigation plugin for Craft
168 stars 20 forks source link

Parent Item = Child Item #96

Open ghost opened 7 years ago

ghost commented 7 years ago

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
hubertprein commented 7 years ago

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.

ghost commented 7 years ago

Hi!

Its actually nothing too fancy. Its exactly like here: https://uberall.com/en/clients

Clicking on „clients“ opens url.com/clients which is the exact same url as the first item of the subnav „client portfolio". Isn’t that a very common scenario?

So the problem is, that amnavs ActiveNodeId is always the one of the child item. So when I fetch every Child item of the ActiveNodeId its always empty :(

I hope I am explaining myself well.

Thanks in advance !

Am 26.07.2017 um 11:46 schrieb Hubert Prein notifications@github.com:

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.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/am-impact/amnav/issues/96#issuecomment-318005002, or mute the thread https://github.com/notifications/unsubscribe-auth/Ab_qi5N52SZvLuuzf5umasvO5otORb20ks5sRwrggaJpZM4OZTd8.

ghost commented 7 years ago

Hi Hubert!

I don’t want to be annoying but I am still struggling with this issue here and I need to go online with my clients website next week. I don’t want to replace amnav because I can’t find any other suitable plugin.

Maybe you could just confirm is theres a bug in the plugin (or a missing feature) so I know that I have to find another solution…

Thanks a lot in advance, Jan

Am 26.07.2017 um 11:46 schrieb Hubert Prein notifications@github.com:

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.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/am-impact/amnav/issues/96#issuecomment-318005002, or mute the thread https://github.com/notifications/unsubscribe-auth/Ab_qi5N52SZvLuuzf5umasvO5otORb20ks5sRwrggaJpZM4OZTd8.