Realized today that with a standard Image Field, you can only set a field-wide default image whereas with most fields you can set a default value per field instance.

Is this a bug? If it isn't why was Image module designed this way (if there's no reason, it seems pretty dumb to me)?

Steps to reproduce:
Install Drupal 7.10
Add a Image field to one content type
Add the same image field to another content type and change the default image
The Default image has changed for both field instances.

Comments

j2r’s picture

yes it will do it in that way as the same image field will count default image as the same.
If you want different images for both the field then simply just create new image field.

Ranko’s picture

Status: Active » Closed (works as designed)
rlmumford’s picture

Status: Closed (works as designed) » Active

Well thats not helpful, any other default value can be set per instance! And it's useful for doing things with views and panels. I shouldn't have to use 7 different fields just to have a different default value on each node type.

Obviously it was designed to work this way, but why?

Ranko’s picture

I did some more investigation, and it looks like this is happening only for the default image setting. If you set it as required on one contetn type, and not on the other - all is good. Even the allowed extensions for upload are obeyed. So it does look like a bug.

rlmumford - sorry for my too eager closing of the issue, I was trying to be helpful to the maintainers, and was sure in my mind that the field settings are carried over all content types.

rlmumford’s picture

That's alright, sorry for my short response. I'll have a look at producing a patch for this in the next couple of days :)

andyceo’s picture

Status: Active » Closed (duplicate)