-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
change of starting index doesn't allow usage of back / breadcrumbs control #3
Comments
Could you share your work with the non-ajax navigation? I am facing the same problem. |
It's pretty specific. I managed to include the navigation as part of a CMS (Contao). The navigation will be auto generated.
submenu_1.2 -> main |
I have a non-ajax navigation issue too! I have a menu like this:
When i click to one of the submenu, the page will be refreshed and the menu return to the main state. I'd like that when i click to submenu 2.2 and after the page reload, the menu keep the state and show submenu 2.2 . |
Any luck with this anyone? |
Not yet, I changed to "mmenu" for better performance and usability. Too bad theres no help from the developer here. :/ |
I solved (partially) this problem with this function:
and calling this.autoSelectMenu(); just before this._initEvents(); |
PR Added for this @ #6 |
@DarioCorno I was able to load current menu, but the breadcrumbs and back arrow don't work. Were you able to have the whole menu function as before with the initial index on the current page? @lakesta can you assist with the example of non-ajax navigation |
DarioCorno, i get the following error ...
Could you post the function please? |
how can i get back to main link. can anyone help on it? |
Hope this approach to the issue will help someone. Add following to main.js MLMenu.prototype._activateSubMenu = function(subMenuEl) { After initializing the menu call the desired sub-menu by id. Example: |
Hello,
first of all I want to thank you for this awesome blueprint. :-)
I tried to make a non-ajax navigation out of it and managed to open the corresponding submenu via
this.current
when a subpage is loaded. But as I changed the index the back and breadcrumbs mistake it for the starting index / main menu and the controls do not behave accordingly. Is there any possibility to avoid this or to set a initial submenu when the page is loaded?The text was updated successfully, but these errors were encountered: