: [Risolto] Gantry 5 login popup:The element #login-form was not found in the DOM.
: riki7710 Sep 2015, 13:05:37
Ciao a tutti. Sto cercando di creare un popup del login; ho seguito questa guida
"I noticed in the documentation page ( www.rockettheme.com/docs/joomla (http://www.rockettheme.com/docs/joomla) ) that there's a documentation for setting up popup module in Gantry 4 but not for Gantry 5. It's actually possible with Gantry 5 and is quite simple, and I will try to describe it here.
2) Go to your Gantry 5 template's Layout page and add a module position (any will do). This module can be anywhere and any size, because it's just a placeholder for the physical login form, which will be hidden (see #3).
3) Modify your custom CSS file to add
#login-form {display:none;}
4) Now you need to add a button/link for users to click which will activate the popup. The link's HTML is:
You can add this HTML chunk by adding a Custom HTML particle, then click on the gear to add the code, or you can use a nifty new Gantry 5 feature by adding it to your menu. To do this, go to your Gantry 5 template's backend and click on Menu on the top right (the link with the menu icon, next to Configuration). Drag a Particle into the spot you wish for the popup link to show, and add the HTML chunk into this particle.
Note: you can make a popup of anything, not just the login module, or not even just a module. Simply add an ID to the parent item of an HTML chunk, then replace the data-rokbox-element attribute to the name of the parent, and it'll work the same."
Però quando clicco su Login mi esce l'errore in oggetto. Non riesco a capire dove sia l'inghippo. Il modulo è pubblicato su tutte le pagine.
Qualcuno sa come risolvere?
Grazie. Riccardo
: Re:Gantry 5 login popup:The element #login-form was not found in the DOM.
: joomla_fan11 Sep 2015, 10:50:39
Buongiorno Riccardo.
Probabilmente non hai inserito il modulo login. Prova a fare così: dalla gestione moduli --> nuovo --> modulo login e lo vai ad inserire in una posizione esistente del template e assegnato a tutte le pagine.
Fatto questo l'errore dovrebbe sparire.
: Re:Gantry 5 login popup:The element #login-form was not found in the DOM.
: riki7714 Sep 2015, 17:42:31
Ciao!! Perfetto funziona. Io lo posizionavo in una posizione inventata!! Alle volte gli errori son proprio banali...ma se uno non ci arriva...è dura!! :)
Grazieeeee!!!
: Re:Gantry 5 login popup:The element #login-form was not found in the DOM.
: maicolstaip14 Sep 2015, 18:42:51
Bene! Per cortesia non dimenticare di aggiungere [Risolto] modificando il titolo del primo messaggio. Grazie.