Ultimamente ho realizzato un portale per un cliente usando il comodissimo Joomla , oltre alle varie modifiche standard mi è stato richiesto di modificare la galleria (ho usato Morfeoshow una galleria molto comoda e funzionale che vi consiglio), per la precisione mi è stato chiesto di visualizzare la descrizione delle immagini nella div modale che compare onclick sulle miniature.
Malgrado tutte le ricerche in rete non ho trovato indicazioni sull’abilitazione di questa banale richiesta.
Vi posto la mia soluzione (il codice non è ottimizzato in quanto non avevo tempo per pensare a strutture più complesse) funzionante.
Aprite il file :
components\com_morfeoshow\src\shadowbox.js
e intorno a riga 105 modificate come segue:
if ( content.obj.el.childNodes[1].boBDY === undefined)
descrizione = "";
else
descrizione = "<div id=\"shadowbox_description\">" + content.obj.el.childNodes[1].boBDY + "</div>";
SL.get('shadowbox_body_inner').innerHTML = SL.createHTML(content.markup(dims)) + descrizione;
Aprite poi :
components\com_morfeoshow\style\style.css
e aggiungete in fondo:
#shadowbox_description {
position:absolute;
top: 0px;
left: 0px;
color: white;
z-index: +1;
width : 100%;
background-color: black;
text-align: center;
}
Ecco fatto, descrizione abilitata
Joomla, show description on modal div in MorfeoShow Gallery:
Open file :
components\com_morfeoshow\src\shadowbox.js
at line 105 modify as follow:
if ( content.obj.el.childNodes[1].boBDY === undefined)
description = "";
else
description = "<div id=\"shadowbox_description\">" + content.obj.el.childNodes[1].boBDY + "</div>";
SL.get('shadowbox_body_inner').innerHTML = SL.createHTML(content.markup(dims)) + description;
Then open :
components\com_morfeoshow\style\style.css
add on bottom:
#shadowbox_description {
position:absolute;
top: 0px;
left: 0px;
color: white;
z-index: +1;
width : 100%;
background-color: black;
text-align: center;
}








Wow, superb blog layout! How long have you been blogging for? you made blogging look easy. The overall look of your web site is magnificent, let alone the content!. Thanks For Your article about » joomla! e descrizione delle immagini con MorfeoShow WebAir Blog .
This is very useful website and I have found good information here and I really appreciate the effort s of the writer of this essay for sharing nice ideas. Thanks.
This may not be the most beneficial place to request this, but I’m trying to find a pest management business in the pittsburgh region and have no way to find out who is the most effective. I discovered this business that is really close to me and wanted to see if any person has any evaluations on them. Spectrum Pest Control, 3058 West Liberty Avenue, Dormont, PA 15216 – (412) 446-2802