
|
This tutorial will show you how to create a photo gallery in Drupal 7. It won't create the world's flashiest or most impressive gallery, but it will work. This tutorial is designed for beginners so that they can understand the key concepts behind creating a gallery in Drupal 7. If you're still using Drupal 6, we have a tutorial for you also. Step 1: Install modulesYou will need to install and enable the only modules listed below:
Step 2: Create a content typeFirst, we're going to set up a photos content type. Go to Structure > Content types > Add content type and create a new content type to use for the photo gallery. ![]() Step 3: Add a Photo FieldNow we're going to add an image field to our new content type so that we can actually upload photos. Go to Manage Fields and create a field using the Image data type. ![]() Step 4: Upload the photosThere's a variety of ways to to upload enough photos to fill a photo gallery.
![]() Step 5: Create the ViewGo to Structure > Views > Add new view and let's set up the view:
![]() Click Continue & edit. ![]() Step 6: Improve the ViewLet's go and add the photo to our view. Click add next to Fields. ![]() Search for and select the photos field that you created earlier. ![]() Click Apply (all displays) twice. Now your preview at the bottom of the page will look like the image below. The only thing wrong now is that the images are all different sizes. ![]() Step 7: Resizing the ImagesDrupal comes with a way to automatically resize images. Let's see how.
![]() You'll now see a preview of the image resizing. Currently nothing is happening. ![]()
![]() Choose how wide and high the photos will be. In our example we have four photos across the page, so we'll choose a width that will allow us to fit four photos in. Click Add effect to finish. ![]() You'll now see a fresh preview of the image resizing. ![]() Now let's go and apply the resizing to our photos.
![]() Click Save to finish your view and go to visit it on the front end of your site. Voila! Your Drupal 7 photo gallery is complete. ![]() |

All of our tutorials are published under the Creative Commons Attribution-NonCommercial license. This means:
Copyright 2013 Open Source Training, LLC. All rights reserved.
Comments
Anyway, thanks for a great tutorial.
thanks a lot for the post.
I wanted to have a jQuery image galley, could you plz help me for that.
Thanks
good
many thanks
Just one question: I didn't find a way to display the filename along with the image.
Any ideas?
I need to have multiple galleries, or categories, or nested galleries (whatever you like to call it) like galleries for the different years (2010, 2011, 2012....) with subgalleries for the different months and then the photos.
understand view and other things..
very thanks!
It was nice.
I want to add lightbox in grid view how it possible. Anyone can help me.
Any suggestion for create a view page with different photo dimension to overwrite the grid layout as in magazine.foxnews.com/ where the grid doesn't appears?
Thanks in advance.
Finally a clear and simple Drupal tutorial... it's not easy to find them!
Thanks a lot!!
And yes, how to add other efect that use JQuery or CSS.
Please reply me :(
Thankyou so much. :')
any comment make me help.
thanks,