CCK:6.x-2.0-rc6
ImageField:6.x-3.0-alpha2
Views: 6.x-2.0-rc1
imagefield: 6.x-3.0-alpha2
imagecache: 6.x-1.0-alpha2

Images display as expected in the nodes, so I think the configurations are not that important for this bug.

I am trying to creating a view which displays a block of all imagefield images of all nodes from a specific contenttype.
Some of those nodes do not have a single imagefield image.

But in the list of available filters in the view the "imagefield" CCK field is not displayed.

Comments

pavel.karoukin’s picture

Project: ImageField » FileField

I have got same problem. After few hours diggin found the problem - it's actually filefield module, not imagefield. I've changed function name from filefield_field_settings_views_data($field), to filefield_filefield_field_settings_views_data($field) in file filefield_field.inc. hopy it will help you too.

jhedstrom’s picture

Version: 6.x-3.0-alpha2 » 6.x-3.0-alpha5

This is still occurring in the latest alpha.

Renaming the function as mentioned in #1 doesn't fix the problem, since the function filefield_filefield_field_settings_views_data is never called. The filefield_field_settings function is looking for the function named filefield_field_settings_views_data. Renaming simply hides the function and views reverts to default CCK handling, which is less than ideal for filefield fields.

jhedstrom’s picture

This is what's removing the filefield filters, and appears intentional:

  // By defining the relationship, we already have a "Has file" filter
  // plus all the filters that Views already provides for files.
  // No need for having a filter by ourselves.
  unset($data[$table_alias][$field['field_name'] .'_fid']['filter']);

The problem is that with that by unsetting the filter, on a node view, without the upload module enabled, I don't get any filters provided for filefield fields.

catorghans’s picture

If I activate the "Upload: Has attached files" filter then none of my nodes are selected although most of them have imagefield images.

eikes’s picture

I can confirm this problem

Stefanos Karagos’s picture

Same here!
Any help please???

dopry’s picture

Status: Active » Postponed (maintainer needs more info)

Look for filefield.. and I think the views filters are currently broken, but if you'd be nice enough to share you content type setup and views configuration, and step to reproduce someone in the know may be able to help you...

drewish’s picture

Category: bug » support
Status: Postponed (maintainer needs more info) » Fixed

this all boils down to a lack of understanding of the new views2 paradigm.

you need to add a relationship for your file or image field and then add the a filter for "File: File ID" and specify "Is not empty (NULL)".

raff77’s picture

I too have used the image field and can't get access to the path within the view. It gives me an fid but no path, even with relationships.

Status: Fixed » Closed (fixed)

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