PHPJavascript

Web Development Guide – My Personal Library of Tutorials and Scripts

Drupal6 photo gallery thickbox effect

September7

http://blip.tv/file/256997

Follow the above link to build a photo gallery in drupal 5.

I have used the same in drupal 6, there is a little difference some extra modules but easy to use.

Modules required

imagecache – needs imageapi (Enable imageapi GD2)

imagefield – needs filefield

views (Grid layout is used which is present in the core of views2 / drupal 6 but in drupal 5 we have to use “views bonus pack” module)

custom pagers

thickbox

cck

Create presets in imagecache ->1st preset thumbnail (eg 50 x 50) and 2nd preset display (450 x 450)

Create content type “image” -> add cck field “image”

Create view -> page -> url “gallery” -> view type “bonus – grid view” -> select “custom pagers” -> noder per page “24″

add fields “node title” and “image” -> “image” field option “thickbox:thumbnail”

Custom filter “node type = image” and “node published =yes”.

Create node “create content” ->”image” (enter all the images you have)

Now view the view “gallery” created www.mywebsite.com/gallery (where mywebsite is the domain of your website). Click on the images the photo gallery should be working. Use stylesheets for further theming of the gallery page.

Note if next previous navigation of the photo gallery is not working go to admin->site configuration ->thickbox
select “per page gallery” under image  field options (cck) where “image field” is the cck field created for the content type image.

posted under Drupal
4 Comments to

“Drupal6 photo gallery thickbox effect”

  1. On February 10th, 2011 at 9:48 pm Mitchell Cohen Says:

    I updated my Drupal modules and the next / previous was not showing on the light-box. I looked everywhere for the solution and came upon your note in the last paragraph of this post. It solved my problem — thanks!

  2. On February 13th, 2011 at 6:32 am admin Says:

    It makes my day when my contribution helps someone …. thanks for your appreciation.

  3. On June 23rd, 2011 at 5:15 am shashikala Says:

    Please anybody help me i uploaded gallery by using llightbox, imagecache
    and cck.The images is succesfully uploaded but it not shoes in the gallery,it shows 1,2,3,4 numbers and prev and next options.Please anybody help me.

    Thanks,
    Shashikala BR

  4. On November 23rd, 2011 at 11:31 am Hitu Bansal Says:

    Use node_gallery module

Email will not be published

Website example

Your Comment:

 

12,829 spam comments
blocked by
Akismet