I have a view setup problem that I can't figure out if it's due to a setup mistake or a bug.

Here is the problem:

I've setup a view that filters on three single content types.
Each content type has a specific cck imagefield:
- each cck imagefield belongs to one content type an only this one.
- One of those three imagefields has a default picture defined for it (lets call it imagefield3).

When I display node fields in the result of my view, the default picture of imagefield3 is allways displayed together with results that belongs to content types that do not embed it.

(see attached snapshop)

Is there a way to get rid of it?

CommentFileSizeAuthor
Defaut_Value_Of_CCK_Image_Field.jpg549.15 KBErco

Comments

dawehner’s picture

as far as i understand you use the the filter so this should matter, you can just remove the field you don't need, but anyway

this should be a bug of the cck/imagefield intregration into views, i'm not sure about this.

Erco’s picture

In fact, I do need this field as it is required to display picture that belongs to one of the content types I'm supposed to filter.

Following your remark, do you suggest that I close this request here and re-open it in cck/imagefield project?

Meanwhile, I'm gonna apply the following workaround that will partially cover my case:

- Unset the "default picture" option for that cck flield.
- Handle the default picture display in a node template for that specific content type.

dawehner’s picture

or you could handle the other way rounnd.

Use the default picture option

and theme the single field, to return nothing if its not set.

esmerel’s picture

Status: Active » Closed (fixed)

Suggested solution given, no response.