Topic-icon Link to menu

Active Subscriptions:

None
10 years 9 months ago #34424 by paulhazell
Link to menu was created by paulhazell
Does anyone know how to link the login modal pop up to a menu link please?
The topic has been locked.
Support Specialist
10 years 9 months ago #34436 by alzander
Replied by alzander on topic Link to menu
Right now there really isn't a way to do that. That's something we have plans to implement in the future, but the modal is part of the module only right now, and module's can't be loaded into menu items. It would take a bit of work to get the modal popup to work from a menu item.

With that said, if the Login module is being displayed on the page somewhere, you may be able to get the popup to work by just calling our Javascript that's already included on the page. You'd have to have the module on the page though for that to work (You could honestly use some CSS to hide the module though).

Let me know if that helps explain and you'd like more information on the Javascript you'd need to add. I don't know if you can do Javascript in a menu item though, so it'd be a complete test and may not work at all.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
10 years 8 months ago #35217 by keenmouse
Replied by keenmouse on topic Link to menu
I'd like to know about the JavaScript to do this. I can inject JavaScript into a menu item with NoNumber's Sourcerer extension .
The topic has been locked.
Active Subscriptions:

None
10 years 8 months ago #35266 by colinM
Replied by colinM on topic Link to menu
Hi
If you want to have SCLogin called directly from a menu then get NoNumbers Modules Anywhere Plugin. You create a menu item as type Text Separator and put {module SCLogin} in the title. Obviously Modals Anywhere has to be published. In my case I set the SCLogin module to appear in position footer but put the menu item in my top menu.

This gives me two places where login/logout appears
The topic has been locked.
Support Specialist
10 years 8 months ago #35273 by alzander
Replied by alzander on topic Link to menu
Colin,
Thanks for your answer, and I hope it helps others immediately.

All,
Going forward, we're looking into a couple of options for how to do this without any external tools. I should be able to get some Javascript code and instructions on what would need to be done to implement things in a day or so. Ideally, we'll have this as an option in a future release as it seems to be requested a lot more than we ever expected it would :)

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
10 years 7 months ago #35928 by keenmouse
Replied by keenmouse on topic Link to menu
Not to rush you, Alex :D, but have you been able to come up with that JavaScript? Colin's method doesn't work with my template for some reason, and in any case, I'd like to be able to change the menu item text.

Thanks!
The topic has been locked.