Download & Extend

Filtering out nodes without uploaded images

Project:Imagefield Crop
Version:5.x-1.1
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

I'd like to be able to filter out nodes in my views that don't have an imagefield crop field in them. I feel like this was possible at one point. If so, how? if not, could this be added? I only want to display nodes with attached images in a certain view.

Comments

#1

Bump.

#2

Do you mean filter those nodes that don't actually have an image uploaded or do you mean nodes that don't have the imagefield_crop widget in them. If the latter do a filter based on the content type as you would surely have a different content type for nodes without imagefield_crop field in them.

If the former, clarify it so yhager can use his time efficiently.

#3

The former.

I have nodes of type "news" with imagefield_crop.

Some of these nodes have values in the imagefield_crop. Many don't.

I would like to be able to make a view of news nodes that includes only news nodes with images uploaded into the imagefield_crop field.

It seems to me that a views handler is what's required.

#4

Ok. You want Views to select only nodes that have a value in the field. As the field is, at its heart, a Filefield type in the CCK module (imagefield and imagefield_crop are only handlers for this type) then I would say that you should be looking for this functionality in the filefield API which states that it does have Views support. http://drupal.org/project/filefield

Does this seem correct to you bflora? If so, then mark this as closed and file a support request under filefield if you can't find the functionality that you are looking for.

#5

Title:Filter for views?» Filtering out nodes without uploaded images