Closed (outdated)
Project:
Gallery formatter
Version:
7.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
3 Apr 2011 at 01:46 UTC
Updated:
20 Nov 2024 at 11:36 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
youssefr commentedAttachement.
Comment #2
youssefr commentedComment #3
manuel garcia commentedI have totaly not tested this on R2L languages... not much time at the moment to test/debug this. Patches are very welcome though.
Comment #4
W.M. commentedNo need to patches at all. All what is needed is to override some css settings using custom local-rtl,css file in Drupal theme folder:
Here:
Using these overridden values, this great module should work perfectly on RTL sites.
Comment #5
W.M. commentedUpdate:
I have made yet another CSS overridings (plus next, prev buttons flipping). One problem still cannot be solved though:
The green arrows to move the thumbnails right and left is not working. The big image buttons work but not the bottom green ones. Maybe the JS needs to be patched ?!
Comment #6
youssefr commentedHi
I added
direction: ltr;to the following css files and now I can see the photos.Line 11 in
/sites/all/modules/galleryformatter/theme/galleryformatter.cssThe basic left/right arrow are working; but still now green arrows !
Thanks.
Comment #7
DRIVE commentedI do not think it is possible with the infinitecarousel.js that GF uses. The closest thing to having support for RTL with a image carousel is the Mod jCarousel http://drupal.org/project/jcarousel
The docs for jcarousel, http://sorgalla.com/jcarousel/ and http://sorgalla.com/projects/jcarousel/ say that there is a switch in the config variables "rtl" true/false but you will not find an example where they demonstrate this function. If you go on to jQuery docs, http://docs.jquery.com/Main_Page , you can fnd posts where people are asking for this functionality but they all say there are "bugs".
YUI is the closest thing that has any working functionality for RTL functionality on various widgets but it might be a large task for you to integrate as you would essentially have to build your own module. http://yuilibrary.com/gallery/show/carousel-rtl
I think that with the Drupal module "jCarousel" would be your best bet because it has properties to where you can set the starting image and how many images will scroll when going to left or to right.... with GF, When the Gallery first loads and you click the "left" scroll button, it loads the "last" image in the gallery with blank spaces to the left (shows only 1 thumbnail).
This really isnt a "bug". I think it is more of a DOM issue and the core developers for jQuery and YUI dont seem to be interested in spending much time to give you that functionality. RTL presents a whole host of problem when creating invisible containers because the X, Y coordinates have to be switched somehow... and that is not an easy task when digging down that deep into the DOM.
Good luck! :)
Comment #8
manuel garcia commentedThanks for the information DRIVE.
Perhaps in future versions of jQuery we'd be able to do this in a sane manner. I'd happily look at patches on this though =)
Comment #9
Nightwalker3000 commentedI've start to using Gallery formatter also on a RTL Site.
Got also the problem, that the Pictures doesn't shown. I've solved this issue with this line of css code added in my style.css
The next and previous button works fine. You've no need to change the direction.
Hope it works also for you
Comment #10
Nightwalker3000 commentedThere was more tricky then i think.
I've solved it so
Testet with Firefox, Opera, Chrome, IE 6,7,8,9
I Hope this will help someone :)
Comment #11
kimobizertin commentedHi,
Thank you!!
That's so helpfull for me :-)
Comment #12
rezaa commentedtnx, it work
Comment #13
fazni commentedtks, I did not adopt this solution but it helps me a lot.
Comment #14
manuel garcia commentedIf you guys could provide a patch we could solve this for everyone (including yourselves in the future) ;)
Comment #15
astonvictor commentedI'm closing it because the issue was created a long time ago without any further steps.
if you still need it then raise a new one.
thanks