Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
It would be nice to hide the back and forward arrows when they are not necessary. In cases when the thumb section is not full. Maybe a setting: "display arrows from xx thumbs".
Thanks for the module!
Comment | File | Size | Author |
---|---|---|---|
#4 | galleryformatter-854522.patch | 1.53 KB | Manuel Garcia |
Comments
Comment #1
Fleshgrinder CreditAttribution: Fleshgrinder commentedThe “problem” is that the back and forward arrows are added via the
infiniteCarousel.js
file. We don't know exactly how many slides there are. But I think that this is an important change to the layout which should be applied by default and not as an option. The following will do the trick and additionally will result in lesser HTML.The following will do the trick you want:
Comment #2
cmseasy CreditAttribution: cmseasy commentedGreat, it works.
I did not expect a response so fast, and with a solution. Thanks for that.
You can see your module in combination with CCK, Taxonomy and costum css at the development site http://www.mirakel.cmseasy.nl/taxonomy/term/portfolio/etalagebureau/maat....
One litle problem (I can solve it by changing the thumbnails dimensions). When the last visible thumb is an image part, this image is not shown in the next section of thumbs. See the last photo presentation on the url above. Maybe the last thumb image should be the first image in the next row of visable images. Or images should not be visible as part.
Anyway, thanks for your response, I appreciate that.
Regards,
Comment #3
Fleshgrinder CreditAttribution: Fleshgrinder commentedYou're welcome but I can't see the problem you described on the webpage you linked. But I can imagine what you mean. Again the problem is the way the thumbnails are generated in combination with the width of the thumbnail section. To solve this I (we) would have to know how to reproduce this particular problem. Additionally I think you should open a new issue for this.
Changed status to “needs review” because the above code solves the issue.
Comment #4
Manuel Garcia CreditAttribution: Manuel Garcia commentedFleshgrinder, can you provide a patch so I can actually see the changes you made, and if so apply them. On the cvs instructions you can find copy and paste code to work on this project easily =) (on the tabs on any project actualy).
I have taken a different approach than yours: I'm checking within galleryformatter.js to see whether or not we need to add the infinite carousel at all, and if so we do add it. Otherwise we don't call the plugin at all.
I believe my approach is a bit cleaner, since there is no need to call
infiniteCarousel()
Guys, please test out the patch and report back, let's get this in before the next release.
Comment #5
Fleshgrinder CreditAttribution: Fleshgrinder commentedSorry for the late reply. You're right, I should really set up everything for creating patches and gain CVS access — but there are so many things to do all day. ;-)
Your approach is much better then mine and is working great, tested it with several constellations. In my opinion this patch should go into the module because the infinite carousel is really unnecessary if there aren't enough pictures.
Regards
Comment #6
Manuel Garcia CreditAttribution: Manuel Garcia commentedThanks for the review Fleshgrinder, committed.
I'm thinking that perhaps we should make the infinte carrousel optional, but that's for another issue.
BTW, there's no need for cvs access for just checking out a project from cvs as annonymous and provide patches ;)
Comment #7
Fleshgrinder CreditAttribution: Fleshgrinder commentedSure, I just meant that I should make myself familiar with that whole Patch creation thing. Diff is only available on Unix machines, currently I only have a Win7 box here. But maybe Winmerge can do the same for me.
Comment #8
Manuel Garcia CreditAttribution: Manuel Garcia commentedOw right... windows haven't used it in years (ubuntu here), I'm sure theres a way I guess.
BTW, 6.x-1.0-rc3 should be coming out soon.