1

I have multiple images attached to a content type that I have set up with fancybox. Currently when viewing that node, all images are displayed. I only want to show the first image, then the rest within gallery mode.

I an struggling to figure out how to limit the diplays within (node.tpl.php) to only show the first attaced image.

2

I like the Gallery Formatter module for my galleries. It's the Colorbox module is nicely integrated with galler formatter to give you a cool lightbox popup. Gallery Formatter will use the first image in your multi-value CCK image field as the first slide image, so you can drag the order of the images in the node form into the order you want them to appear in.

If you want to display the first image of your multi-value CCK image field separate from your gallery (like in a view that gives a preview of each gallery), I would first create an ImageCache setting that you want to use to display that image, and then output that image in your node template like so:

<?php print theme( 'imagecache', '[your_image_cache_preset_name]', $node->field_gallery_images[0]['filepath'] );?> 

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.