How can I get only one image to appear in the teasers if I have uploaded multiple images in my defined dimensions, i.e., 95x95 px.? I set the Product Image Field to Images in admin/content/node-type/product but I get that nasty-looking display in teaser view which doesn’t even take the user to the node when clicked upon. Rather, the full-size image pops up in the ensuing page. Please see the attachments. Okay, so now I set the Product Image Field to None and thankfully the aforementioned display is gone. Now, I upload the same images from my defined image field at admin/content/node-type/product/display called field_images (Imagecache presets and all) and I get two thumbnails.
My question is: how can I get one 95x95 thumbnail in teaser view that’s clickable directly to the node to appear while other uploaded images are suppressed in teaser view? Moreover, how can I get the first uploaded image to appear in say 180x180 while all other uploaded images are in thumbnail format ready to be clicked upon to render a 180x180 image in full-node view?
Comments
edit the view
In the Product Type >Manage Display, or in a view used to assemble your catalogue page (by default uc_catalog AFAIK, but you can create a custom view for the job), when you edit the image field display settings, you can select the size of image you want to display; it should also have a drop-down Link > None | To File | To Content where Link to File takes you to the picture, and Link to Content should take you to the node.
If you want the first uploaded image to show differently from the others, best is to create an extra image field in the Content type Product called 'Additional Images' or something. Set its display in Manage Display on the content type for Full and Teaser to be different than the display options for the main image.
If you are using a catalogue view, also add this new field to the view used to assemble the catalogue page, and give it different display settings than the main image.
If this involves too much work in re-uploading images, and you want the existing images in the database to render differently for different instances of the same field,I guess getting image 0 a different size than image 1, 2, 3 etc. will be more complicated.
Digit Professionals specialising in Drupal, WordPress & CiviCRM support for publishers in non-profit and related sectors