[TYPO3-english] rgsmoothgallery customization
Thomas Meixner
tom.meixner at gmail.com
Fri Apr 16 18:10:12 CEST 2010
1.At least for the main image you could check the defaults in the .js file
jd.galleruy1010.js. You can paste these settings in the advanced Settings
flexform (don't forget the ,) I think fadeDuration: 500, is what you are
looking for.
2. This probably requries hacking of the above mentioned file. I think the
arrows are generated as an <a> Element with class left/right around line
111:
<code begin>
this.constructElements();
if ((this.galleryData.length>1)&&(this.options.showArrows))
{
var leftArrow = new Element('a').addClass('left').addEvent(
'click',
this.prevItem.bind(this)
).injectInside(element);
var rightArrow = new Element('a').addClass('right').addEvent(
'click',
this.nextItem.bind(this)
).injectInside(element);
...
<code end>
You could try to generate your own elements and inject the arrows into it.
Instead of:
.injectInside(element);
Something like
.injectInside('#hereYourDiv');
3. maybe you can get some inspiration here:
http://bigearthweb.com/test/JDgalleryMod/demoMod.php
Unfortunately it's for smoothgallery 2.0 :-( but worth a look.
Happy hacking, I'm on it as well atm to get an external carousel.
Regards,
Thomas Meixner
Claudio Strizzolo wrote:
> Hi all,
> I'm trying the rgsmoothgallery extension. It does almost anything I need,
> but I would like to customize some behaviours that I didn't find in the
> documentation and in the examples. Possibly someone may help?
>
> 1. Is there any way to customize the fading effect speed, or better
> disable it at all? In some cases I need to display the images
> immediately, without fading/unfading, both in the main pictures and in
> the thumbnails gallery.
>
> 2. Can the arrows in the main picture be moved outside of the picture box
> (to a specific div, for instance) and even replaced with normal
> "Previous"/"Next" links?
>
> 3. Is there any way to display the title and description of the main
> picture outside of the picture box, i.e. above or below the picture
> itself?
>
> Any hints?
> Thanks in advance,
>
> Claudio
More information about the TYPO3-english
mailing list