This tutorial will show you how to create a photo gallery in Drupal 6.
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 6.
You will need to install and enable at least the five modules listed below. Several of these do depend on other modules so your final list of installed modules will be longer.
Step 1: Create a content type
Go to Administer > Content types > Add content type
Create a new content type called Photo Gallery.
Step 2: Add a Photo Field
Click Manage fields next to Photo Gallery and we're going to add a photo field.
- Label: Photo
- Field name: photo
- Type of data: File
- Form element: Image
Click Save twice to create the field.
Step 3: Upload the photos
Go to Create content > Photo Gallery and upload the photos you would like in your gallery. Each photo will be it's content item.
Go ahead and upload at least four photos so that we have something to work with.
Step 4: Creating the View
Go to Site building > Simple views > Add view.
Enter the following settings:
- Title: Dog Photo Gallery
- Path: dog-photo-gallery
- Display: Photo Gallery posts
- Sorted: Newest first
- As a: List of titles
Click Submit when you've finished.
Step 6: Improving the view
Go to Site building > Views > click on Edit next to your new view which will be called simpleviews_1 if this is your first time using Simple Views.
Make sure to click Page on the left-hand side as in the image below:
Set the number of columns to 2 on the next page.
Now we're going to add the photo and caption. Click the plus icon next to Fields:
Set Label to None and set Format to Image:
Click the plus icon next to Fields once more.