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?

CommentFileSizeAuthor
#6 filefield_single_default_image.patch907 bytesquicksketch

Comments

quicksketch’s picture

You 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.

joostvdl’s picture

Sorry for not telling, but I do have only a single imagefield with a maximum of 5 values.

joostvdl’s picture

FYI I use also filefield module version 6.x-3.0

yrre7’s picture

subscribing.......

yrre7’s picture

Did you find the solution to this problem yet?

quicksketch’s picture

Version: 6.x-3.0 » 6.x-3.2
Category: support » feature
Status: Active » Fixed
StatusFileSize
new907 bytes

I'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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.