How to Make a Simple or Complex Gallery for Drupal 7
Since D7 came out, there are many people who are skeptical about how easy it is to manage media types and files. What if we want to make a gallery only images or a gallery of videos? What modules are best to use to make this job simple?
Some modules needed to make simple image galleries for D7 are already part of core: Image cache as Image styles, CCK as fields and Views. To make the gallery more robust, follow these steps:
To create a lightbox gallery:
- Add the fields you want to be displayed in the gallery and exclude all of them.
- Add the colorbox trigger in the field > Replacement Patterns and include the thumbnail as the trigger, the entities (ex: video field, image field, description) on the popup and the title on caption.
- The width and height will need to be tested depending on how much content is placed on the popup and theme.
- Add views paging and sorting, if you want, and save. Now you have a simple image/video/mixed contents gallery.
For a video gallery with slideshow or to imitate Youtube UI:
- Add the fields you want to display in the slideshow and exclude all of them.
- Add the global custom text > Rewrite > Replacement patterns and include the title and entities (ex: description, extra fields).
- On Style Settings of the view, click on Slideshow then its gear.
- For slideshow settings, make slideshow type as cycle and choose the effect transition.
-
Click on View Transition Advanced Options:
- To make it auto rotate, make timer delay have a value more than 0 (preferably 5000)
Original Article: