Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

Download & Extend

Drupal Core Distributions Modules Themes General projects

Views Gallery
View Version control Automated testing

Created by KarenS on 23 July 2009, updated 2 December 2014

This project is not covered by Drupal’s security advisory policy.

Update: There is a mostly-working D7 version in git, but it's not an official release because I no longer can
maintain it. If you need something for D7 and can't use this code I suggest http://drupal.org/project
/node_gallery as an alternative.

I am no longer able to maintain this module, if someone else would like to take it over I'd be glad to hand
it over.

This module pulls together the techniques Jeff Eaton outlined in http://www.lullabot.com/articles/photo-
galleries-views-attach to automatically create a simple gallery where each gallery is a node with an
embedded view of images that were assigned to that gallery. The module creates the content types, sets
up the imagecache presets, creates the default gallery view that is embedded into the gallery nodes by
Views Attach, and adds css to make it all look nice.

This technique also works well to create individual image galleries for Organic Groups, since the gallery
and image content types can be configured as group nodes. Views Gallery OG, included in this package,
provides a setup page to make it easy to automatically create a gallery for every group and adds group
context to the forms wherever possible so the right groups and group galleries are pre-selected when you
create gallery images.

This module is mostly a bit of glue around numerous other Drupal modules. It is a perfect example of
something the Features module was designed to do, and it is being reworked as a Feature instead of using
custom .install code. All new development will be on the Features version. The versions are:

• The 6.1 branch is the original code, which does not use the Features module.
• The 6.2 branch is the new code, which requires Features, Strongarm, and CTools.
• See the README.txt for instructions about how to upgrade from 6.1 to 6.2.

This module is intended to be a lightweight gallery solution with a simple feature set that you can tweak
using the CCK and Views UI and some custom css in your theme. If you want a robust gallery with
advanced features, this is probably not the right module to use. If you need a quick and simple gallery
solution built on modules you are likely to use elsewhere, this may be a good fit.

The following modules provide the nuts and bolts for this to work. It is a long list of modules, but there is
little or nothing you need to do except make sure the latest versions of all these modules are available
when you install Views Gallery and everything will be installed and configured for you.

After all the modules are installed, find the new, empty 'Gallery' node created by the module and start
adding photos to it, or go to 'Create content' and choose to create a new 'Gallery'. The gallery nodes will
have a 'Add new image' link on them, and images will have a link back to the gallery they belong to.

Required modules:
• CCK
• Views
• Views Attach
• Nodereference URL
• Filefield
• Imagefield
• ImageAPI
• Imagecache
• Token
• Custom Pagers
• Features
• CTools
• Strongarm

If the Lightbox2 module is enabled, a 'View Slideshow' link will be added to the gallery view, which will
bring up a lightshow of the gallery images.

If the Views Slideshow module (version 6.2) is enabled, a Views Slideshow block is added to the default
view.

This module was written by Lullabot and is sponsored and used by Buzzr.

Note: Image API requires a toolkit but won't enable one automatically. Don't forget to enable
an image toolkit (ex. the ImageAPI GD2 module) or your photos may not display properly.

For those who came here after viewing Jeff's screencast: Note that we have changed some
field and content type names from the original example and have added numerous other
features. This module is an alternative to setting it all up manually from the screencast. Here
the module sets things up for you using the same techniques. Don't do the steps in that video
and then try to turn on this module, it will not work. This module is intended to be used on a
site that does not already have these content types set up.

Project information
Seeking new maintainer
The current maintainers are looking for new people to take ownership.

No further development
No longer developed by its maintainers.

Module categories: Content Construction Kit (CCK), Features Package, Media, Organic Groups (OG),
Views

134 sites report using this module

This project is not covered by the security advisory policy.


Use at your own risk!
It may have publicly disclosed vulnerabilities.

Releases
View all releases

Maintainers

KarenS

Issues for Views Gallery


To avoid duplicates, please search before submitting a new issue.
Search
Advanced search
All issues
64 open, 1 RTBC, 212 total
Bug report
10 open, 48 total
Statistics
New issues 0
Open bugs 10
Participants 0
2 year graph, updates weekly

Resources
Read license
View project translations

Development
Source code
Commit log
GitLab activity
Issues needing review [2 issues]
Report a security vulnerability
View change records

Drupal is a registered trademark of Dries Buytaert.

You might also like