I have a Content Type with 5 optional images that can be uploaded. When I upload less then 5 pictures the remaining pictures are all replaces bij the default picture.
Is it possible to set that when there are 1 or more pictures uploaded the other fields are not filled with the default picture?
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | filefield_single_default_image.patch | 907 bytes | quicksketch |
Comments
Comment #1
quicksketchYou could do this with custom theming of course, make modifications to your node-[nodetype].tpl.php file.
However to do this without any custom code, you'd have to instead have a SINGLE image field instead of five different ones, and the single field have the Number of Values option be 5. This would make it so that a single image would prevent a default image from showing up, and if no images were uploaded, a single default image would be shown.
Comment #2
joostvdl commentedSorry for not telling, but I do have only a single imagefield with a maximum of 5 values.
Comment #3
joostvdl commentedFYI I use also filefield module version 6.x-3.0
Comment #4
yrre7 commentedsubscribing.......
Comment #5
yrre7 commentedDid you find the solution to this problem yet?
Comment #6
quicksketchI've made this change to the FileField module which restricts the default image to only show one time, no matter how many images are allowed in a single field.