Anyone know how to utilise the getActivePageIdForLevel function that AM Nav (https://github.com/am-impact/amnav) now has? Would really like to be able to have a secondary menu on a page which just has the navigation items that are for that current section. Can't see how to use it in the Docs though?

  • Hi Mark, have you tried getting in touch with the plugin author directly? – Mats Mikkel Rummelhoff May 25 '15 at 8:06
  • I've opened an issue on GitHub yes. Just thought I'd ask on here though in case anyone had ever used it before. Just now wondering how do you all go about creating site navigations for clients then that they can add entries to and update themselves or does nobody tend to give that power to clients? – Mark Bowen May 25 '15 at 16:57
  • I haven't used AM Nav myself and can't answer your question. Personally, I usually create a Structure section called "Navigation", with an Entry field for the link: cly.mmikkel.no/image/2O361P2L0w3S. Note that the "Navigation item:" part of the entries is auto prefixed using a "Label" field (the latter is the one I display on the frontend): cly.mmikkel.no/image/0q1B460u2D3k. The reason I add the prefix is just because then the nav items stand out from other "actual" entries. Finally I usually use the {% nav %} tag to output. – Mats Mikkel Rummelhoff May 25 '15 at 18:57
  • Hi mmikel. Many thanks for the insight. Just wondering though. With the {% nav %} tag is it possible to get it to output a secondary navigation such that if you are on a subpage then the secondary navigation would just show everything for that section? Really hoping so? – Mark Bowen May 26 '15 at 7:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.