2
votes

I'm new to Drupal (I'm using D7) and trying to understand how things are put together and such. I need to put together a page which shows a series of groups and within each group shows several images and each image can be clicked on to bring up a lightbox for browsing through each of the photos. For example, let's say the page is a photo gallery of a vacation, it might be something like:

Day 0


Photo thumbnail of a building, click on it and you see all my architectural photos from Day 0

Photo thumbnail of my dog, click on it and you see all my dog photos from Day 0

Day 1


Photo thumbnail of a building, click on it and you see all my architectural photos from Day 1

Photo thumbnail of food, click on it and you see all my food photos from Day 1

Photo thumbnail of my sister, click on it and you see all my family photos from Day 1


Etc. I've installed and played with Views Slideshow and Gallery Formatter and managed to get a very simple type of gallery, but I'm wondering if there is a groupable gallery plugin out there or if I'll need to roll my own.

It is my assumption, and PLEASE correct me if I'm thinking wrongly with drupal here, that I'll need to create a content type for my gallery node, add fields to it for images (but I really feel like I need a grouped images data type because there won't be a fixed number of groups or a fixed number of galleries within each group), and then I need some kind of formatter plugin which will take the list of images and generate the html/javascript necessary to present that data (model) on the page (view).

Thoughts?

1

1 Answers

2
votes
  1. Create a content type called Gallery with no extra fields
  2. Create a content type called Image with a multi-upload image field and then a node reference field.
  3. Create a view that brings in all of the gallery node types and then another display as an Entity Attachment in that same view that brings in all of the images.

Modules needed:

Example of the views setup:

Views Photo Gallery Page SetupViews Photo Gallery Entity Attachment Setup