First part of this, where it says go to your content type I'm assuming this is the Album content type we created in the album based image gallery tutorial.. however when I go to Display Fields all I see is Images, no Node field? Am I missing something here?

[...] I have now written a tutorial on creating a grid of images within an album using the node-album.tpl.php method. « Fatal error: Unsupported operand types in email_registration.module on line 61 Creating [...]

For about a month I have been experimenting with several online photo album tutorials which either failed to meet my requirements or failed to deliver as promised. Your tutorial is by far the most comprehensive, as it takes one all the way to pagination. Also lightbox was a novel and slick way to page through the images in a gallery.

Second, while your solution appears to be the best I have seen so far, I still have not been able to get it to work.

1) After adding and saving the descriptions for each successfully uploaded image NO descriptions get stored. When I upload a new album it gives me the option of adding a description to each image once uploaded. However, Going back to view the album content shows that all the description fields are empty. A var_dump confirms that both my description and title fields are empty.

2) My field_image CCK appears to be okay. I reviewed the field_image CCK imagefield several times against your previous tutorial.

3) I do not know why the descriptions are not being saved. Your tutorial is the first I have seen/attempted which allows for the addition of an unlimited number of image files to the album content type. Are each of the files saved as a separate node? Or are there several image files attached to each album node? Would you happen to have an idea why my descriptions are not being saved?

4) Another notable photo album solution was communicated in a quickly covered video tutorial by Jeff Eaton of Lullabot (http://www.lullabot.com/articles/photo-galleries-views-attach). While his solution fell apart in terms of pagination, it has an interesting architecture. His solution uses the node reference URL module, and the Views Attach Module and a couple of somewhat non-intuitive embedded views. There is a nice teaser post with an album overview photo, and then a nice gallery similar to yours. What is nice about his solution architecture is that each photo is a node which gets associated with an album node, which gives the admin a lot of control and flexibility in terms of creating views.

I may try to merge your paging solution with Eaton's technique, if I am unable to get the descriptions to work.

James, thanks for the help. While I am not exactly sure how to verify that the database updated with my description, I was able to export the structure and dump the data for the album content type table. Browsing the table revealed no additional information (at least that I could find).

Exporting the table structure for table `content_type_album_fotos`, I get the following.
--

While I am a relative newbie to mySQL and phpMyAdmin, this table structure and data dump appear to me to be inconsistent with a setup which would record the descriptions of multiple images (files) added to a node. If so, this would explain why the database fails to take and retain the descriptions I provide. Any thoughts?

As I stated in my prior comment, after entering the descriptions for multiple images associated with the album content and then clicking save, the descriptions on the page instantly disappear, never to return.

I have setup the album content type properly (as far as I can tell) to accept multiple image files with descriptions. I must have configured something at least partially correct, since I am able to upload multiple images and to have them all for later recall, and displaying in a grid of images. Also after uploading I am given a dialog box to enter a description for the image file.

This is the result from my var_dump, which shows the uploaded jpg image, but nothing stored for either description or title.

From the var_dump, the file ID is 95, so if you search your files table in PHPMyAdmin you will be able to find out if the data is saved in to the database or not. By the looks of the var_dump, it isn't which implies there may be a problem with filefield or imagefield.

Hi, i follow your tutorial, but something is not matching, it works well without grid and pagination, but with grid and pagination, the images did not show in the content, but the pagination do, i've inserted 12 pics.

yes i did, but a in the code, i replace the field_images for the name i've gave, and in the database query i did the same thing. It find the pics because the pagination works fine, just, the pics dont shows up;

ps: i did this on another site that worked fine, and i followed the same steps

Great tutorial. I made a mistake somewhere though, I have the images twice now, once one per row and second time two per row, as i defined in the template. Any idea where to look to fix this?http://www.friendshostel.ro/node/24
Thank you.

Hi, can someone please share the node-album.tpl.php with me? I did as instructed and nothing happens except now there are no images under gallery node at all. I am a newbie and strugling with image galleries and trying that galleries have the latest image. Please help!!

Thanks James, i will try that. But this is first time I am using any template. There are no other custome template for this installation. Do you still think that I need to flush it? Just asking for the sake of knowledge...

James, as per the instructions".. In your content type, go to Display fields and set the Full node to . This will take the images out of the $content variable..."

If the full node is how would the images attached to the node will appear? When i enable it by selecting LightBox2->thumbnails, it started to show the pictures but in one column. It looks like template was never applied to the node.

This might be the issue. I am using acquia-drupal stack. I created another site as "photo.localhost:8082" on my laptop. What it did is created a folder "photo.localhost" under site folder at the root. Now I put this template under "\Sites\acquia-drupal\themes\acquia\acquia_marina". But it does not look that it is reading this template.

it should work. However I am getting page not found error. I checked the URL of the link and it has a URL alias in it that I created to play around with Pathauto module and then I uninstall it. However path to this gallery still maintained the old alias even after I uninstalled the module. Is this how it behaves? I did not know that you have to maually change/delete the aliases after you unintall the module.

Or is there any way we can remove them in one go rather than one by one? Sorry I am new to drupal.

I installed this module and reconfigured the URL Aliases by inserting a custom string for ALL the URLs just to test it. And then after playing around, I uninstalled this module. But some how the some of the paths for the imported images in one of the galleries still maintained that old path with custom string in the URL. For example,

Thanks for your help. I was able to create prototype of my image gallery.

After the image galleries, I need to make video galleries. We have over 2000+ 3rd party hosted videos on youtube, google, blip.tv etc. I am using emfield and was wondering if you have done something for video galleries like image galleries.

Hi all and thanks for the tutorials.
I have everything working fine i think, but now i was trying to just show 9 images per page, and so on, instead of showing all in the same page.Iam very new to Drupal and building sites, so if you can point me in the right direction.

I have added the node-album.tpl.php file and added the code for grid with pagination, however something is not working correctly. I get the albums themselves in the grid format, however when I go into an album, I get the pagination function, but no images appear. I know that the code is finding my photos becuase it is giving me the correct number of pages that would be required, but the images are not showing up.

Hi again James, and thanks again for this excellent piece of work!
I have one question though, and it is related to image_fupload, which I know from the above comments that you haven't looked much into yet? But perhaps you have by now? It is really quite annoying, because when using image_fupload, I just cannot get the grid to display as a grid! It works perfectly without fupload, but with, it is simply a one-column display, and rather may I say boring...
I've tried a godzillion different things by now, and it has taken me days to get ...nowhere, really. Could I be so bold as to beg you to do a simple tutorial with image_fupload as well? Or at least point out the settings with image_fupload? It would really be very very much appreciated!!
In any case, thanks again for all the brilliant work you've already put into this! I've already learned tons about cck and views, thanks to you!