Default image selection

Posts: 9
Joined: 05/06/2008

Is it possible (i.e. has anyone successfully implemented the ability) to select a default image for a product?
Our client complains that if they upload all of their images, then want to upload a new one which they want as the default to show in lists etc, then they have to delete all images and reupload them making sure that the first one is the new one.
Am I right in saying that this is probably more of an imagefield issue in which case we need that module to sort it out? The only problem I have is that I nearly broke my client's site due to the image upload issue discussed in other threads and so do not want to upgrade imagefield if I can help it. Im not even sure if they have implemented this.

Any ideas on how to do it would be golden!

Thanks
Will Eaton

Posts: 931
Joined: 11/05/2007
Bug FinderFAQ ModeratorGetting busy with the Ubercode.

willeaton wrote:
Is it possible (i.e. has anyone successfully implemented the ability) to select a default image for a product?
Our client complains that if they upload all of their images, then want to upload a new one which they want as the default to show in lists etc, then they have to delete all images and reupload them making sure that the first one is the new one.
Am I right in saying that this is probably more of an imagefield issue in which case we need that module to sort it out?

Yes, it's a CCK ImageField issue. This ability is supposed to be introduced into the Drupal 6 version of the ImageField, but I don't think it will ever be available in 5.x.

You can change the image order by hacking the database rather than re-uploading everything - see http://www.ubercart.org/comment/17128/Re-sorting-arranging-product-image...

If you're so inclined, I think it would be fairly easy to write a small module which altered the node/#/edit page to add a checkbox for the admin to designate the primary/first image. Allowing arbitrary reordering, however, would require a lot of UI work.

--

<tr>.

Posts: 9
Joined: 05/06/2008

Thanks table row!