By bdiddymc on
Hi Drupallers,
I've just had a client ask for the ability to load images so the first 5 can be sorted by order, and viewed in an article. When more images are added then there is an option to see the photo gallery with all the images.
I'm trying to look into how I could go about this. Has anyone completed anything similar to this? Any module been your savior?
Any help would be greatly appreciated.
-Sheedz
Comments
If you need the ability to
If you need the ability to order a list of nodes, perhaps nodequeue might be what you need?
all images within nodes (i think !)
Thanks for the reply. I'm not sure if that module will allow me to make what the client is after.
I'll need to have it so the client adds the images when they are adding the article.
So it will may be one article with, say, 8 images. When a visitor views this article they will see the story, 5 images and then have an option to view the galllery of all 8 images. (this will mean they'll all have to be within the same node... right?)
I think even the use of a lightbox may be efficent. Though, not sure how I would hide the additional 3 images and then have them show-up in lightbox.
If you have a search around,
If you have a search around, there are some good tutorials on creating galleries using imagefield/imagecache and/or lightbox.
I'm not recommending this, but you could tailor this to your needs as follows:
Create a template file for your node type, and at the bottom of the template embed a view that pulls the first five thumbnails of the images posted on that $node->nid. Then add a link to the bottom of each node linking to a view page that pulls every thumbnail of the linking $node->nid.
I'm not experienced enough to pull out the php for this off hand, but if nobody else on here can help you i'd be willing to give it a shot when I get the chance.
John
Cheers John, Haven't had a
Cheers John,
Haven't had a chance to search around, but looking to get back to this site soon. So will send a post if/when I make some headway.