I think that should be an option to define a default image or file for a field, in case one don't upload something but it still needs to have something displayed.

Comments

jpetso’s picture

Project: FileField Image » FileField
Version: 6.x-1.0-beta1 » 6.x-1.0-beta2

Yup, totally. Although this should go into filefield itself, and should be a "default file" instead so that it can be just as useful for other file types.

ar-jan’s picture

I would like that functionality too. Would use it to show an 'empty' thumbnail image in teaser listings.

dopry’s picture

Version: 6.x-1.0-beta2 » 6.x-3.x-dev
Status: Active » Postponed (maintainer needs more info)

This is a feature we'll work on in the beta cycle... Since files can be shared safely now, we can implement this feature more easily in D6. How should default image work on fixed qty multivalue fields? I'm leaning towards only populating the first field item... The required validation already checks that at least one image is uploaded instead of checking for all fields...

this will also make some settings not make sense... like required + default value....

I'd love some more feedback and opinions on this feature.

dopry’s picture

Status: Postponed (maintainer needs more info) » Fixed

this feature is in..

surgeonbor’s picture

I'm using 6.x-3.0-alpha7, which seems to have the default image feature that you just added. However, for my application I prefer to have no default image - I want it to behave like other CCK fields that display nothing if no data is entered. I don't see a way to "turn off" the default image and make it behave as it did before. Can you make the default image optional?

Thanks.

ar-jan’s picture

@surgeonbor, you appear to already have the default image behavior, correct?
I'm using the alpha7 as well but nothing's changed.
Couldn't find any option in -dev either. Is there an interface, how does it work?

surgeonbor’s picture

I didn't do anything to make the default images appear, and I don't see anything in the interface to toggle it. I installed the new version of FileField and they just appeared.

I did make changes to my content, and probably to the view that displays them, so maybe you have to "refresh" (for lack of a more informed term) the content in order to make the default image display?

Status: Fixed » Closed (fixed)

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