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.
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
Comment #1
jpetso commentedYup, 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.
Comment #2
ar-jan commentedI would like that functionality too. Would use it to show an 'empty' thumbnail image in teaser listings.
Comment #3
dopry commentedThis 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.
Comment #4
dopry commentedthis feature is in..
Comment #5
surgeonbor commentedI'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.
Comment #6
ar-jan commented@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?
Comment #7
surgeonbor commentedI 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?