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

CommentFileSizeAuthor
#2 galleria_thumb_location.patch2.51 KBeromba
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Mark Theunissen’s picture

Status: Active » Closed (won't fix)

Where 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.

eromba’s picture

Title: How to display thumbnails above image ? » How to display thumbnails above image?
Status: Closed (won't fix) » Needs review
FileSize
2.51 KB

Actually, 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.

Mark Theunissen’s picture

Status: Needs review » Fixed

Once again, thanks prof1337!

Changes committed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

lightawave’s picture

Uhm... 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

Mark Theunissen’s picture

You 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.

lightawave’s picture

Thanks 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!?

Mark Theunissen’s picture

Haha, 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.

bredi’s picture

A suggestions on how to easily list vertically with out jcarousel? left or right side?

thanks

Steven Mansour’s picture

Hi, I copied the .tpl file to my theme's folder, and edited it accordingly, but the thumbnails are still underneath - is there anything else I need to do?

Nevermind - works fine... need to flush all caches after adding a new .tpl file to the theme! :)