It seems like the two most popular modules are Image and Gallery, but I also came across:

Brilliant Gallery
eXtreme Small And Simple Gallery
Node Media
Pblog
Yet Another Gallery Module

If I want to put a photo gallery on my site does anyone have any recommendations as to which module to use?

Comments

theamoeba’s picture

I'd say use gallery. Gallery2 is a fair gallery manager and should cover your needs. I have used Gallery2 briefly before and i dont believe that i found any issues with it. :)

----------------------------------
spreading the love... :)
espresso-online

userofdrupal’s picture

Thanks for you're reply. Also I forgot to mention CCK, Imagefield, and Views as one of the options.

If you were starting a new simple photo gallery with a handful of galleries, would you use:

1. Image module?
2. Gallery module?
3. CCK, Imagefield, and Views?

userofdrupal’s picture

Okay I just listened to a lullabot podcast that pretty much suggests that the Image module is "deprecated" and it would be better to do CCK and Views. This makes sense to me as it seems like you can do what I would want to do with CCK and it will be ultimately more flexible.

So the questions is:

CCK, Imagefield, Views, etc. or Gallery module (or other gallery modules)

I think I am going to go for CCK/Views but I'm not sure what the trade-offs are. Anyone have an opinion?

Lostmonkey’s picture

Hi,

I have made my gallery-system at www.lostmonkey.dk using CCK, Imagefield, Views, etc.

Only real issue that I am still working on is a 'next - previous' navigation system but apart from that, I think it works as a fine solution.

- Mikkel

userofdrupal’s picture

Nice site. How did you make the list of galleries page at http://www.lostmonkey.dk/galleries?

Lostmonkey’s picture

Galleries-page is actually a bit of an ugly manual construction not using anything fancy like views or imagecache. I plan to do something about it, but just haven't gotten around to it yet.

sprite’s picture

Your integration of Drupal with Gallery2 is SWEET!

spritefully yours

spritefully yours
Technical assistance provided to the Drupal community on my own time ...
Thank yous appreciated ...

Lostmonkey’s picture

hmm ... assuming you are referring to my site ... it is actually NOT an integration of Gallery2 ... see above post.

:-) Mikkel

Anonymous’s picture

You can use the custom pagers module for this i'd of thought?

I like what you've done, I'm currently testing the CCK, Imagefield, Views method and have been looking at how to create a 'start' page listing galleries. I'm thinking maybe the panels module mixed with views might work perhaps. But I've yet to really think about it properly.

Lostmonkey’s picture

I have tried using the custom pagers module, however it doesn't do exactly what I want it to do. Problem is that I have sorted my image nodes by multiple terms, and would like the navigation to stay within these terms, but I don't see a way to do that.

userofdrupal’s picture

I found this site which appears to discuss and provide code for creating a list of galleries. I haven't really looked into it, but maybe it will help somebody:

Here's the outcome:
http://lasqueti.ca/photos/gallery

Here's the how-to part:
http://lasqueti.ca/books/design-notes/image-gallery-summary-view

Anonymous’s picture

Hi Lostmonkey,

I'm impressed and inspired when I look at your site! Great job!

I was just doing some research to choose between image module en CCK combined with VIEWS. I think the latter will give you more control over the layout. And your site only affirms my gut feeling!-)

Great work!

- embracing things that liberate you -

Anonymous’s picture

Biggest trade-off compared to Gallery2 i've found is inability to upload directly from say iPhoto/Picasa et al to the site and create the galleries from there, with the titles generated by the process.

If someone has worked this out I'd be very grateful to hear how!

userofdrupal’s picture

With the CCK, Imagefield, Views solution, I now understand how to make a single gallery. But how do you make multiple galleries?

Lostmonkey’s picture

I have attached terms to all my images nodes (i.e. Birds, Insects etc.), and these terms serve as a way to sort the nodes into different galleries using a view set up to select for term.

userofdrupal’s picture

I have this working now using the taxonomy term name as an argument for the view. However, on each of my image nodes, there is a link to the taxonomy term(s) which links to a URL such as http://www.example.com/taxonomy/term/1.

How can I get it so that the taxonomy links on the nodes take users to the view instead of the default taxonomy page?

For example on your page: http://www.lostmonkey.dk/image/alert you have links to "Birds" and "South Africa" which I guess are your taxonomy terms but clicking on them takes you to a view (which is what I want)

Lostmonkey’s picture

I am not sure I understand. What kind of 'view type' do you use for the page in your view? I have mine set up for the 'Grid view' from the bonus pack.

userofdrupal’s picture

I'm not sure if I can explain this totally clearly. On your page http://www.lostmonkey.dk/image/alert you have links for Birds and South Africa under the node title. What kind of links are those and how did you create them?

Lostmonkey’s picture

You are right those are taxonomy links, and are displayed by default I guess. I have however assigned some url aliases to them so it doesn't display as http://www.example.com/taxonomy/term/1.

My view for image nodes is then set up so that selecting an image term will display all thumbnails (via Imagecache module) from image nodes with that term in a grid layout.

userofdrupal’s picture

My view for image nodes is then set up so that selecting an image term will display all thumbnails (via Imagecache module) from image nodes with that term in a grid layout.

Normally selecting a taxonomy term just shows you just a list of nodes with that taxonomy term. How did you make it so selecting a term is a view?

Lostmonkey’s picture

I guess just adding the view selecting for term will override the default action? ... I don't know how else to explain it.

I don't know if it is any help, but here is an export of the view I'm using:

  $view = new stdClass();
  $view->name = 'taxonomy_term';
  $view->description = 'Images sorted by term';
  $view->access = array (
);
  $view->view_args_php = '';
  $view->page = TRUE;
  $view->page_title = 'Taxonomy';
  $view->page_header = '';
  $view->page_header_format = '1';
  $view->page_footer = '';
  $view->page_footer_format = '1';
  $view->page_empty = '';
  $view->page_empty_format = '1';
  $view->page_type = 'bonus_grid';
  $view->url = 'taxonomy/term';
  $view->use_pager = TRUE;
  $view->nodes_per_page = '12';
  $view->sort = array (
    array (
      'tablename' => 'node',
      'field' => 'sticky',
      'sortorder' => 'DESC',
      'options' => '',
    ),
    array (
      'tablename' => 'node',
      'field' => 'created',
      'sortorder' => 'DESC',
      'options' => 'normal',
    ),
  );
  $view->argument = array (
    array (
      'type' => 'taxid',
      'argdefault' => '1',
      'title' => '%1',
      'options' => '0',
      'wildcard' => '',
      'wildcard_substitution' => '',
    ),
  );
  $view->field = array (
    array (
      'tablename' => 'node_data_field_photo',
      'field' => 'field_photo_fid',
      'label' => '',
      'handler' => 'content_views_field_handler_group',
      'options' => 'thumb_linked',
    ),
    array (
      'tablename' => 'node',
      'field' => 'title',
      'label' => '',
      'handler' => 'views_handler_field_nodelink',
      'options' => 'link',
    ),
  );
  $view->filter = array (
    array (
      'tablename' => 'node',
      'field' => 'status',
      'operator' => '=',
      'options' => '',
      'value' => '1',
    ),
    array (
      'tablename' => 'node',
      'field' => 'type',
      'operator' => 'OR',
      'options' => '',
      'value' => array (
  0 => 'image',
),
    ),
  );
  $view->exposed_filter = array (
  );
  $view->requires = array(node, node_data_field_photo);
  $views[$view->name] = $view;
userofdrupal’s picture

Thanks that did help. I now realize that taxonomy_term is a default view and that it looks like you overrode this view to display in bonus: gridview with images thumbnails and then I'm guessing with pathauto generate an alias for the taxonomy/term.

However, although I loosely understand it, and I might be able to do something similar for my situation, it's starting to get beyond my current understanding.

Lostmonkey’s picture

I think I now finally understand what you were asking me regarding the problem with the terms not linking to galleries but default term listings. I have been looking into it myself, because I think it probably isn't very good to override the default taxonomy view.

Anyway, I think the problem can be solved with the Taxonomy Redirect module: http://drupal.org/project/taxonomy_redirect

- Mikkel

userofdrupal’s picture

taxonomy_redirect looks good. I'm going to look into it. I put this on the back burner for a while because I wasn't really seeing a clean solution that I liked and understood. Hopefully I'll get this up and running soon. Again, that looks like it could be the missing piece to the puzzle. What I'm thinking about doing now is:

www.example.com/galleries <-- Could be handcrafted page with links to each gallery

www.example.com/gallery/<some-argument> <--- single view that takes an argument
www.example.com/gallery/some-gallery-1
www.example.com/gallery/some-gallery-2
www.example.com/gallery/some-gallery-3

(Note gallery vs galleries in the URLs, these would be two different pages)

Using taxonomy_redirect, taxonomy terms on each page would link to the view. For example, the term "some-gallery-2" would link to www.example.com/gallery/some-gallery-2

But what I'm wondering is, could the view with no arguments handle the "list of galleries" page? (I experimented a little with having the default argument be "summary" which lists the taxonomy terms with the number of items underneath.) My head is swimming!

sepeck’s picture

While it is true that several Lullabot people work and contribute to the community and the code base, I would not take everything they say to heart, especially in that specific podcast.

Which gallery you use really comes down to your needs. The one that comes with image module works well for many and can be adapted. For more flexibility there is also Imagefield Gallery

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide

gglamenace’s picture

Hello, I am looking for a gallery embeded in drupal 6.2, and I think I am going to use gallery2 and gallery module.
I have 2 questions:

1- I have read that gallery module is working with gallery2.3 which is not a stable version at this moment. However, can I use gallery module with gallery 2.2?

2- Is there a way to associate photos in gallery2 with taxonomy terms, like with "image" module?
In fact I want to filter image according to some tags, and using taxonomy can make the job automatically, that's why I want to use taxonomy with photos in my gallery.

If someone can help me to answer my questions, thanks in advance

Jerome

kusik’s picture

In answer to 1. The module will not work, I tried it. You need to use the nightly build at the moment. There is an API error when setting up, which leaves it not working.
As for 2. I'll leave that for someone else :)

userofdrupal’s picture

What do people think about using a CCK field to represent a gallery instead of taxonomy? That is, add a CCK field called "Gallery Name" and then specify the "Gallery Name" for all cck image nodes, and then create a view that displays all the nodes with a given "Gallery Name"?

userofdrupal’s picture

How can I do some kind of bulk import/upload when using CCK for an image gallery? It seems like I have to upload pictures one by one.

userofdrupal’s picture

I just found the imagefield import module which seems to do this (http://drupal.org/project/imagefield_import). Cool. I feel really close to getting this all working.

mouse77e’s picture

I recently added a photo gallery to my site. The gallery was to show user contributed photos to the rest of the community.
I felt it needed to also allow for adding the back-story to some photos and free tagging. Have a look. If I can be of any held let me know.
http://www.afterthemouse.com/new-gallery

Mouse77e