Is it possible to make the modal popup appear when a link is clicked?
for example when i write on a page <......then please login ....> make login a link that triggers the modal popup ?
I tried http:// ....sitename.com/#login-modal but i guess that was too simple a thought
Did you have any chance to look at my question in previous post about linking the modal pop-up to a link in an article or maybe a menu (basically like the login on this site ?
Sorry for the delay! *IF* you have the SCLogin module on the same page, somewhere, that code should work. If you go to the page below, when not logged in, we're actually doing something similar with the login button about half-way down the page. The code used there is:
<a class="btn btn-primary" href="#login-modal" role="button" data-toggle="modal">Login</a>
That only works because the SCLogin module is being loaded on that page, and therefore putting in the code for the popup that is required.
If you don't have the SCLogin module on the page, there's a few, options available, though none are ideal:
* You can add the SCLogin module and have it be functional as well (like the page demo'd above)
* You can add the SCLogin module into a specific template position and then use CSS to hide that entire position. That will still add the modal code required, while hiding the instance of the SCLogin module.
We're already looking into a better way to allow for the popup to be included on the page for various reasons like yours. Unfortunately though, that's not ready yet.
I hope the above helps explain a little more and possibly helps. If you have any questions or feedback though, just let me know.