Create An Image Gallery With CCK, Views And ImageCache

This lesson shows how to create an image gallery using CCK with ImageField, Views and ImageCache. CCK is used to create a new "image" content type that contains an upload field for images courtesy of ImageField. ImageCache is used to crop and resize the uploaded images. Views is used to display gallery page and an accompanying RSS Feed.

The premium version of this lesson is encoded at the full 1024x768 resolution as originally recorded.

 

Bookmark and Share Bookmark or Share Post

Comments

Peter's picture

Use different name for content type

When you enable the 'image' module, it creates a content type 'image' and that might cause a problem if you already have an existing content type called 'image'

http://drupal.org/node/464622

I would probably call it something different than 'image' just to prevent a potential problem later.

learnbythedrop's picture

Image Content Naming

That's a very good point. I assumed that those who went with the ImageField and Views combo would not get involved with the image module but there's certainly nothing that prevents the use of both techniques on one site. Thanks for the tip.

Peter's picture

Image usage

I know a lot of people might be using the image module for other things rather than just a gallery... like for inline images with a (shield your eyes :O) a wysiwyg editor and image assist.

So I think, even if they aren't using image for the gallery, they should keep their options open for future uses of image.

I_am_trying_to_understand's picture

Thank you

Your video was timely as only after discovering it in the Planet Drupal aggregator, a user asked for this feature. (I had it on the 'to do' list!).

I would be interested in setting up sub-galleries if that were possible. Or more specifically when a user wanted to upload photos about an event that they could easily create a gallery with that event name themselves.

Do you have any pointers on how this could be done? Or do I have to wait for the next video ;) ?

Peter's picture

Subgalleries? or gallerys on a node?

On my site I use the viewfield module to display a gallery view of images uploaded on a node.

Then I also have a gallery of images from different nodes.

See my little description here: http://drupal.org/node/308784#comment-1686334

learnbythedrop's picture

Sub-Galleries And More

I don't have a specific answer for you right now. But I do suggest that you check out the following video from Lullabot because I think they're showing off some things that would help you get closer to what you're looking for. http://www.lullabot.com/articles/photo-galleries-views-attach

I_am_trying_to_understand's picture

Step by Step best for a beginner

@learnbythedrop

I did chance on that Lullabot video too. Thanks for the tip.

Their result is great looking and seems to function intuitively but there is so much left out of the video that you are expected to know about.

As a beginner I much prefer your explanations:- step by step.

@Peter

Thanks for the link - will see what I can understand.

I will keep working at the galleries as I want to get to the top of this, yet another, learning curve!

Stefan's picture

FTP uploads - never covered in Drupal Gallery videos

Hi,

thanks a lot for your tutorial, but the one thing all the articles and videos about implementing galleries in Drupal have in common is: None of them covers the handling of FTP uploads.

Your example is nice but not really suitable for a live site. You neither have sub-galleries (which I think is a must), nor do you care about mass-uploading of files to be imported into a gallery.

It would be great if you could take care of this next time.
Thanks.

Peter's picture

Mass uploads and subgalleries

Stefan,

To do mass uploads just use the image Fupload module http://drupal.org/project/image_fupload for your cck field instead of the imagefield. It integrates well with it.

Thats what I did for this: http://simplistechsolutions.com/content/logo-compilation . Also, that is a 'subgallery' of this: http://simplistechsolutions.com/design-gallery . (see the link to the mini tutorial I posted above)

Stefan T.'s picture

Thanks for the hint. Still

Thanks for the hint. Still this is not an FTP-Upload but at least something to look at. I will give it a try.

learnbythedrop's picture

CCK - Views Image Gallery

"Your example is nice but not really suitable for a live site."

You make good points but I disagree with the above statement. If someone wants a basic image gallery where they just want to add single photos every so often then this solution works just fine. I used the same technique to build an easy gallery at http://julietlofaro.com/gallery.

If you're looking to build a community site where users will be submitting a lot of content or have a large batch of photos to upload then you'll need more functionality. In future videos I'll show some more advanced techniques but there are a lot of different things you can do with images in Drupal and a lot of different ways to do it. I certainly won't be able to cover all methods. I just try to break things down into consumable bits so that people can learn step-by-step.

Stefan T.'s picture

"If someone wants a basic

"If someone wants a basic image gallery where they just want to add single photos every so often then this solution works just fine."

Yep, that's true but I guess the most common thing is at least to have sub-galleries.

Sure I understand that you cannot cover everything and it's not your fault that all the other tutorials also just scratch the surface, but everytime I find a gallery tutorial I hope that there will be ONE person that covers everything to implement a full gallery. I have collected a lot of pieces but there is still the glue missing to stick everything together.

Olivier Biot's picture

Very interesting screencast

Thanks for sharing this screencast! It is very interesting to see the ImageCache API at work in this scenario.

One enhancement is to add a vocabulary to the images and use this vocabulary (or taxonomy terms thereof) to show a "sub gallery".

Fairly straightforward if I am not mistaken, if you use a list of taxonomy terms as parameter for the view. One image can then be displayed in various galleries (e.g., "trip to the zoo", "elephants", "featured").

Now combine this with EXIF and IPTC data that can be extracted from the images and you nearly reinvented Flickr ;-)

Cheers,

Olivier

Kris Bulman's picture

taxonomy sub galleries

could you provide more information on how to do this?

It would be great to click on a taxonomy term, and show only the images in a grid view only associated with that term.

learnbythedrop's picture

Image Sub Gallery

I have to admit that it's not in my particular area of expertise.

Anonymous's picture

Album based image gallery

I wrote an identical tutorial a few months ago at http://jamestombs.co.uk/2009-03-18/create-a-simple-image-gallery-in-drup... which I followed up with an album gallery tutorial, where you would have a gallery of different albums, then going in to each album you would get a gallery set up of that individual album.

http://jamestombs.co.uk/2009-05-12/create-an-album-based-image-gallery-i...

Sid's picture

Gallery images not visible to logged out users

This was a very clearly explained tutorial. Thanx.

I am able to create & view the gallery as admin user. However, when i log out, i am able to go to the path, but don't see any images. I checked the permissions settings too, and tried to set Allowed for Anonymous Users for 'view imagecache mygallery' under imagecache module section. Doesn't work still. Am I missing anything?

learnbythedrop's picture

Gallery Image Permissions

Which permissions did you check? The CCK field is the key. Whenever you add a new field to a content type that particular field has its own permission settings. So I'd make sure that anonymous users have access to see the image field that you created.

Albert Skibinski's picture

Next / Previous links

Nice tutorial, but there is one essential piece of functionality which is lacking: the previous and next links when you are at an image node. I've been searching for this for quite a while and can't find a simple solution for this problem when using cck/imagefield/imagechache and views 2.

Ideally, I would like to build a Flickr-like navigation, which shows the previous and next image as small thumbnails. Any suggestions on this?

learnbythedrop's picture

Custom Pagers

You can use the custom pagers module to get pagers that would allow users to go forwards and backwards. http://drupal.org/project/custom_pagers

That doesn't give you Flickr-like functionality though. What you would need to do (and I'm saying this as a theory because I haven't done it) is to create a block that contains pagers in order to cycle through the photos. You could try out the Views Slideshow: Imageflow module. It looks pretty slick. I tried it once myself on a test site. http://drupal.org/project/views_slideshow_imageflow

Richard's picture

Problems

I just can't get the image cache scaling etc to work on my WAMP server. I get the follwing message when I set up the preset:

warning: touch() [function.touch]: Unable to create file /tmp/testpresetimagecache_sample.png because No such file or directory in C:\wamp\www\modules\imagecache\imagecache.module on line 425.

Subsequently scaled images are not created when I select the display for the content type (the subfolders of the preset haven't even been created). I see that others seem to be having problems with imagecache just in case you're having the same issue. http://drupal.org/node/435418

This isn't the first time that I've not been able to get modules to work via wamp - hence why I always end up working on my live site, which is kind of annoying.

Great tutorial by the way Rob. I'm re-implementing my galleries after having watched it.

Richard's picture

Success

Thanks Rob,

I got this to work on my production site (although no luck on my local host). I've chosen to hide the node itself from the user and to instead link directly to the full-sized image. The ability to add a title to the field works really well as lightbox2 presents this below the pictures. Here's a link to my gallery (this page is in Japanese so some of the text may look funny if you haven't got a Japanese language pack installed).

http://www.ishigaki-japan.com/jp/kankou_gyararii

Thanks again for a great tutorial.

Anonymous's picture

Need help!!! I have drupal on

Need help!!!
I have drupal on a localhost with WAMP. My root folder (localhost) is on an external drive (F:). No clue what to do with ImageMagick, where do I install it? how does drupal know where that is? How would I go about it once I send my drupal site to a remote server?

Albert Skibinski's picture

Flickr like navigation

I wrote a blog post howto expand the functionality with a 'Flickr-like' navigation with prev/next thumbnails using the prev_next api module:
http://blog.merge.nl/2009/09/30/previous-next-navigation-image-gallery-d...

learnbythedrop's picture

Previous Next API

That's very nice. Thanks for sharing.

dzutaro's picture

Thanks for useful screencast!

Thanks for useful screencast!

miggs's picture

Thanks

Fantastic. Got me going on the right track.

Anonymous's picture

Using comments

What about comments? I like your use of imageField and views, but I'd also like to add user comments to each photo (imageField), rather than on each album (node).

Is there (should there be?) a CCK module that could attach comments to each image saved by imageField? Maybe it's not even possible.

learnbythedrop's picture

Comments On Images

There may be a module out there somewhere but I don't know about it. One of the things about Drupal is that comments are only related to nodes.

Anonymous's picture

You will need to create a

You will need to create a content type called Image and have the imagefield only allow 1 image. Then you can have comments on seperate images. You will then need to group the images in an album. You could do this via taxonomy or using a master content type and use node references on your image nodes.

Mike's picture

Getting RSS feed to work

Great tutorial especially for a beginner.
Only one hiccup I could not get the RSS feed to work. I followed everthing step by step - but no feed. I did notice that on your screencast when on the views screen and you are setting the path "gallery/feed" above the input field there was your URL for the local site - I do not see this on my screen. Any ideas what I'm doing wrong.

Mike

learnbythedrop's picture

RSS Feed Settings

When you say that the feed doesn't work I don't fully get it. When you go to the feed address (assuming you set up a path) do you get a 'page not found' error? Or do you get a feed but it doesn't have the correct content in the feed?

Pat's picture

Some possible enhancements and a question

Possible Enhancements
1. Use Imagefield Import to batch process the photos. You simply ftp the images to a designated directory and the the module detects the images and allows you to enter title and body information, and then it creates the image nodes for you. It can also populate the title and body from EXIF, IPTC, or file name. It can also handle extra fields, such as gallery_name.
http://drupal.org/project/imagefield_import
http://drupal.mwu.dk/imagefield_import

2. On the Image node type specify a gallery field, and then use it as an argument for views and pathauto. In my example, the view path is gallery/%1, and the argument is [gallery_url], so that I can "create" new galleries simply by creating a node with a different gallery_url. Pathauto is set so that new image nodes are created with the path /gallery/[gallery_url-raw]/[title-raw], so that all new image nodes appear to be under their parent galleries.

Using the gallery/all argument displays all images in their galleries one after another, and still allows another custom view "gallery" to simply list the various galleries.
www.patheyman.com/gallery
www.patheyman.com/gallery/all
www.patheyman.com/gallery/turtles
www.patheyman.com/gallery/test

Question:
Is it possible to reference a field other than the one specified in the argument? For example, my argument and view title are from the argument [gallery_url] (turtles), but I would like for the view title to come from [gallery-title] (Turtles, Archie Carr, and Tortuguero).

BonAngle's picture

Show multiple images in a article

Very good tutorial. If I had seen it before, it was easier for me ;-) But now I'm at this level.
I have a content type (article) with a image field which allow multiple images. How can I orgnise my images when the article is show. Is it only by manipulating the css file ? or by using a gallery view that I can integrate (how ?).

learnbythedrop's picture

Node Gallery

You may want to have a look at the Node Gallery module. http://drupal.org/project/node_gallery

lauram's picture

Hi, I really like your

Hi, I really like your screencast. I have watched it like 5 times! My issue is, only one of my thumbnails shows up in my view. What can I have done wrong? My images are all the same content type. Sorry for a silly question. And thanks so much!!!

learnbythedrop's picture

Items in View

The number of thumbnails that appear in your gallery is determined by several different things.

1. The number of items in the view - Check to make sure that your view is set to display more than 1 item. Check the "Items to Display" setting.

2. The filtering for the view - Depending on your filtering, you will display more or less content. For example you might filter out unpublished items by selecting Node: Published Yes. Or you could filter by certain categories. Perhaps your filtering is too restrictive to show the content you want.

3. The available content - If you set the number of items to show = 10 and you've only got 5 items that match the filtering then only 5 will show. So you might want to double check /admin/content/node/overview to double check that the content you expect to show up is in fact published and not in a draft state.

Sam's picture

imagecache?

Hi; Thank you for your video.

I did set up two imagecaches for crop and resize following your video.
When I created "View" for the gallery by choosing crop or resize in view field, it did not show any preview underneath. If I choose just "image" in there, preview works fine but the images are too big. How can I make imagecahe works?

Thanks;

Sam

Anonymous's picture

ImageAPI error

Enjoyed this screencast, however when trying to recreate it i get the following error.
warning: Parameter 1 to imageapi_imagemagick_image_resize() expected to be a reference..
appreceate any help you can provide.

Thanks

learnbythedrop's picture

Image Magick Error

It sounds like you don't have the ImageMagik toolkit installed. Go to /admin/settings/image-toolkit and select the GD2 image manipulation toolkit.

RAFF's picture

Showing the gallery

When i edit the view gallery, i dont see the images in the preview like in the tutorial. I startet 3 times everything from the beginning, but it dont works.
The images are uplodet, but i dont see a gallery.

PS sorry for my poor english

learnbythedrop's picture

Preview Images

When you say, "i dont see the images in the preview," I assume you mean in the Views window. It's hard to say what it is. If you link to a screenshot of the view settings I might be able to help a bit more.

garg654's picture

Goodness, what happened to my

Goodness, what happened to my english there (it was late)? Let me rewrite:

"Is it possible to only use imagecache if a node for a gallery does not specify a custom thumbnail? For example, in create content, I want a user to be able to upload an image, and then also attach a thumbnail in a different image field. If the thumbnail image field is empty, then imagecache should make a thumbnail, but if a thumbnail image fie is specified then the gallery should use the image the user uploaded."

Hopefully this will make more sense. :)

learnbythedrop's picture

ImageCache Thumbnail

I'm sure that you could do it with the right php code. I don't know how to make the appearance of one form field conditional upon another though. My best suggestion would be to pose this question in the ImageCache issue queue on Drupal.org.

Ted's picture

importing images in gallery problem creating new album

I have all modules installed and working, so I created a image album that works, so later I want another image album so I import the images butt I want a new album, butt the images where going to be placed at the existing album so I cannot created a new album.

I am trying to solve this for have a day.

learnbythedrop's picture

Re: importing images in gallery problem creating new album

This shows you how to create single gallery. If you want to learn how to create multiple galleries when you want see the following comment. http://learnbythedrop.com/forum/image-gallery-for-community-site#comment...

thepocketgeek's picture

Viewing the images

I had the same problem with previewing the image that one of the other users ran into. Once I created the Image Content Type and the ImageCache UI Presets for Crop and Resize, I tested the upload feature and created a new node using the image content type.
The image uploaded correctly to the server and when I edit the node, I can see the image thumbnail, just like yours in the video but when I tried to preview to view the full image, nothing shows up. Just the node title.
Did I miss something or skip a step? Aside from setting up the permissions for the image presets, are there other permissions I need to set?

Greg's picture

Style & Row Style Options question

Well done on the video.

2 things that went by very quickly, I have a question about.

#1a. You had 4 columns selected, and only 3 images displayed, and your spacing was well spaced for the images. I have 5 columns, and when I put my images in, they are all jammed together with no padding. How did you get yours to be spaced nicely -- did you edit a css file? (that seems to be how most people are handling in that complain about this problem) If so do you have a sample of the code?

#1b. If not I would assume that is what the "Separator" box is for - but again I have no idea what to put in there and the video flashed over that part very quickly (you said you didn't need it. What am I supposed to put in there exactly? Pixel dimensions? Something HTML ish? I have messed around with it sticking things like that in, but I am not sure what it wants exactly.

#2a. I selected the Style options Alignment to "Vertical" (just messing around) and it didn't change anything. But if I change the Grouping field from then it changes the alignment to vertical. Change it back to and then it goes back to Horizontal alignment . . . kinda weird. Any comments?

Drew's picture

Re: Create An Image Gallery With CCK, Views And ImageCache

Hey Rob - Love your video tutorials. By far the best resource I've found on the Web for Drupal instruction. (Been watching them for 3 days straight.)

One (perhaps obvious) question on this tutorial: If I want to direct all my users to a very simple "Upload Your Photos" page, how can I strip away all the extraneous stuff on the "Create Image" page? (e.g., "Revision Information", "Comment Settings", "Authoring Information", as seen at minute 9:00 in your video.)

Is this where Contemplate comes in to play?

FYI my end goal is to have a private image gallery for each user, with a very simple upload field for them to add to their own gallery.

Thanks

learnbythedrop's picture

Re: Create An Image Gallery With CCK, Views And ImageCache

Thanks Drew. Your users shouldn't have access to the sections you mention because they won't have admin rights. So if they don't have "administer nodes" set under their permissions they won't see that stuff. What you should do is set up a user with the same rights as everyone else on the site just so you can test to see what they see. I typically add a role call 'Administrator' to give to people who are not the first user but have more power than an authenticated user. The first user can do everything by default. If someone registers for your site they are automatically granted authenticated user access.

Drew's picture

Re: Create An Image Gallery With CCK, Views And ImageCache

Thanks Rob. Clearly I gave away my Drupal newbness with that question. It all worked out the way you stated.

Keep up the great work!

Eddie's picture

Re: Create An Image Gallery With CCK, Views And ImageCache

Hi, thanks for the tut, it´s really great and easy to understand, but I´m having a problem when I upload the image I see the thumnail but when I preview or save it the immage apears as a link
What am I doing wrong?? please help

learnbythedrop's picture

Re: Create An Image Gallery With CCK, Views And ImageCache

What I think you need to do is take a look at the settings for the image field. If you go to the appropriate field display settings (for the blog content type it would be /admin/content/node-type/blog/display) you will see settings for the teaser and full node display of each field. If you click on the list box for the appropriate field you should be able to change the field from a link to one of the imagecache manipulated images.

Duddimai's picture

Re: Create An Image Gallery With CCK, Views And ImageCache

Great tutorial

In the vid, you mentioned it was a part one of two, and I cant seam to find that 2nd tutorial, can you mabye help me with a url for that tutorial?

Thank you - And thanks for making these series of tutorials, they are so very helpful :)

Duddimai - from the tiny land of Denmark ^^

learnbythedrop's picture

Re: Create An Image Gallery With CCK, Views And ImageCache

It's the next video I posted titled Image Gallery Enhancements. Enjoy! http://learnbythedrop.com/drop/149

PS: I have been to Denmark. It's a very lovely place.

Nauman's picture

Re: Create An Image Gallery With CCK, Views And ImageCache

hi fellow,
gr8 work for beginners... What i missed in ur video, the images are not shown, check the default/files ... came to know the thumbnail and images are uploaded but in different folder which is diff. to default image setting as explained in your tutorial.

Need help how to varify the path ?

troyfennell's picture

Re: Create An Image Gallery With CCK, Views And ImageCache

Is there any way you can tell me what steps to take to allow what just happened at 13:45 of your video? No matter what I do, the stupid thing won't let me upload anything!

I truly appreciate your step by step tut, but this snag is really making me crazy. I believe I have not done something in terms of the initial Drupal install. But what is it?

learnbythedrop's picture

Re: Create An Image Gallery With CCK, Views And ImageCache

What's the error you're getting Troy? Was this the issue related to the php.ini file? If your image size is greater than the max upload size allowed in php.ini then there will be problems. If you go to /admin/settings/uploads on that page you can see the max upload size that is allowed by the php.ini. How you increase that number differs from web host to web host. I recommend checking with your host support forum for assistance on that.

Kirsten Brooks's picture

Just What I Was Looking For!

This was exactly the info I was looking for - I'm refining some of my project's content types to include images and needed the upload/resize/crop/view paradigm - THANK YOU! This was really easy to follow instruction giving nice step-by-step - in fact, I paused the video and implemented on my site as instructions were given.

Prerna's picture

Re: Create An Image Gallery With CCK, Views And ImageCache

Hi,
I am new to drupal and I followed all the steps but when I view the "page" and even in preview there are no images. Where is the path set for the images from the views?

learnbythedrop's picture

Re: Create An Image Gallery With CCK, Views And ImageCache

There are a few things you should check. First, you'll want to make sure that the images show up in their appropriate nodes. If they're not showing up then you have a problem creating the image nodes. If they do show up then it is likely that your view is not set up properly. You should be able to see the images that your view will return in the preview area below the view settings. In particular you want to make sure that you are filtering on the appropriate content type and have included the appropriate fields so that the image will be included in the output of the view.

Anonymous's picture

Re: Create An Image Gallery With CCK, Views And ImageCache

I am getting a problem. When i select filed format to thickbox:crop and save. It will not save its value remain generic files

learnbythedrop's picture

Re: Create An Image Gallery With CCK, Views And ImageCache

If images are not being processed by ImageCache it is possible that the image toolkit (/admin/settings/image-toolkit) is the problem. Check your status report (/admin/reports/status) to see if there is an error with the image toolkit. If there is an error you can either take corrective action or switch to a different toolkit.

julia kropp's picture

Re: Create An Album with albu photo + photo access

When creating an Album and the privacy settings are enabled, an authenticated user,other than the admin, can't access its own images when the album is set to be private.He can see album that are set to be private and were created by the admin.
Any ideas of what could be wrong?

Thanks,

Julia

Dan's picture

Re: Create An Image Gallery With CCK, Views And ImageCache

Hello Rob!
Great video! Everything worked out great for me but I have one question. How can I display a "Download original size" button on every image page?
Thank you
Dan

learnbythedrop's picture

Re: Create An Image Gallery With CCK, Views And ImageCache

You just need to add an extra field to the view. For example in the video I selected the field Content: Image (field_image). In the format field you would select "url to file". So you could add one field like you did in the video with the cropped image linked to the node. Then you could go back and add the second field as I described above. If you want to customize the text of the link you could select the "rewrite the output of this field" option too.

rahman's picture

Re: Create An Image Gallery With CCK, Views And ImageCache

This is the exact tutorial I was looking for. I am converting/creating a map website(http://www.map-world.us/), this will help me a lot. One question I do have - what is the best way to do this: Image module or use CCK?

learnbythedrop's picture

Re: Create An Image Gallery With CCK, Views And ImageCache

You're better off using the CCK Image Field. You could create a content type of "Map", include the CCK Image field in the content type, and then create your view that lists the title fields with a link to the node.

Anonymous's picture

Re: Create An Image Gallery With CCK, Views And ImageCache

I have followed this tutorial and everything went fine. But my view display is a Block and via the Site building - Blocks I have added it to the "content" region and asked it to be shown only in the front page as I want the gallery only on the front page.

Now I have enabled "Use Ajax" under basic settings of the view. But still when I use the pagination and navigate the gallery , Ajax does not seem to work and the remaining is loaded in a new page.

Could you please help??

learnbythedrop's picture

Re: Create An Image Gallery With CCK, Views And ImageCache

I think that if you want to have the gallery displayed in the "content" region then you should be using a "page" display. That may be the root of the problems. So I say create a page view with the same settings and see if the pagination works.

Pele`'s picture

Re: Create An Image Gallery With CCK, Views And ImageCache

Iam thankful for you video

still have a few questions

first how can i link the gallery to a link in the main menu bar

u c ..i want to link GALLERY in the main menu to open a page with thumbnail for sub galleries ...and every thumbnail to open a unique gallery for pics of the same group

its actually very simple..just a complicated explanation on my side

you help will be appreciated

learnbythedrop's picture

Re: Create An Image Gallery With CCK, Views And ImageCache

If you want the gallery link to appear in the main menu bar you can either add a menu option in the view settings window or the site menu settings.

If you want to perform this from within views look in the Page Settings section. There will be a link there that says Menu: No Menu. If you click on that you will see options to add a menu item for your page. You can select "Normal menu entry" which will result in some extra fields that are exposed. There is a list titled "Menu" and in that you will want to select "Primary Links" which I am assuming is what is generating your "main menu bar".

The other option is to manually add the page link to the Primary Links via the menu function at /admin/build/menu-customize/primary-links.

Anonymous's picture

Re: Create An Image Gallery With CCK, Views And ImageCache

Everything works great with the tutorial except that there is no space between the images at all...how do I separate them a little bit horizontally from each other?

Also, how do I run a site that has multiple image galleries? I want to create individual pages for each of my Real Estate Properties, and each Page would have galleries on them with multiple pictures of the Property.

learnbythedrop's picture

Re: Create An Image Gallery With CCK, Views And ImageCache

The spacing between images will be determined by several factors including the width of the page, the number of columns in your grid and the width of the images. If you want more space in your grid you can either increase the width of the page in your theme settings, decrease the size of the thumbnails in the ImageCache settings, or decrease the number of grid columns in the views settings.

Peter's picture

Multiple Image Galleries on Website?

How do I run a site that has multiple image galleries? I want to create individual pages for each of my Real Estate Properties, and each Page would have galleries on them with multiple pictures of the Property. Is it possible to have multiple galleries on one site and how?

learnbythedrop's picture

Re: Multiple Image Galleries on Website?

Yes, it is possible to have multiple image galleries. There are several different ways to make that happen. It all depends on your level of comfort with different Drupal features and your workflow.

1. You can use an all-in-one gallery module solution like Node Gallery.

2. A different but a little more advanced approach uses the Views Gallery module. You can view a tutorial at http://www.lullabot.com/articles/photo-galleries-views-attach to understand the concepts related to that approach.

3. Finally, you can use the method from my tutorial, creating a new page "view" or "display" each time you want to add a new gallery.

The FUpload module will be very helpful in these scenarios since it allows you to upload multiple images at one time.