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.
Really nice module. Thanks.
I want to display thumbnails above image.
I have tried to set insert into options, in galleria.js, but this does not change anything.
var options = {
insert : '#galleria_main_img',
onImage : function(image, caption, thumb) {
What am I doing wrong ?
Frederic
Comment | File | Size | Author |
---|---|---|---|
#2 | galleria_thumb_location.patch | 2.51 KB | eromba |
Comments
Comment #1
Mark Theunissen CreditAttribution: Mark Theunissen commentedWhere did you get the information that says you should add that line into galleria.js?
I think this request is for the Galleria plugin, not this module, as the placement is done in the jQuery.
Comment #2
eromba CreditAttribution: eromba commentedActually, flebas is on the right track here. Galleria has built-in support for changing the location of the main image. All you need to do is indicate a jQuery selector for the desired container element using Galleria's "insert" config setting, as flebas has done. The only problem is that the container flebas specified does not exist since the Galleria module does not use a container by default.
Here's a patch that makes the Galleria module always use a predefined container div. Additionally, you can now specify the location of the thumbnails (above or below the main image) through the Galleria admin page.
Comment #3
Mark Theunissen CreditAttribution: Mark Theunissen commentedOnce again, thanks prof1337!
Changes committed.
Comment #5
lightawave CreditAttribution: lightawave commentedUhm... hi guys...
I was wondering what to do with the patch for I am not an expert on Drupal.
Most tutorials and example on Drupal stuff assume that you know everything on Drupal, but I don't. (and I guess with me a lot people)
So I anyone could shine a light on this, please!!!!
thnx
Lightawave
Comment #6
Mark Theunissen CreditAttribution: Mark Theunissen commentedYou don't need to do anything with this patch as the code has been committed to the latest version of Galleria. If you download the latest one, it already has this.
Comment #7
lightawave CreditAttribution: lightawave commentedThanks Mark, you are the fastest replier on drupal I know!!!
Okay, but does this only work with the carousel module installed?
Because I don't see an option to put the thumbs above or below anywhere!?
Comment #8
Mark Theunissen CreditAttribution: Mark Theunissen commentedHaha, no problem! Yes there isn't an option any more, instead you will see in the galleria.tpl.php file the following:
<div id="main-image"></div>
That is where the main image will be. So, copy the .tpl.php file to your theme's directory, and modify it so that this div is either above or below your thumbs.
Comment #9
bredi CreditAttribution: bredi commentedA suggestions on how to easily list vertically with out jcarousel? left or right side?
thanks
Comment #10
Steven Mansour CreditAttribution: Steven Mansour commentedNevermind - works fine... need to flush all caches after adding a new .tpl file to the theme! :)