Is there a way that I could check with views if there is a an image in imagefield that is populated by feeds, so if there is not an image then I could not show that feed item? If this is not possible I am asking for a possiblity of adding this as feat.?
Comments
Comment #1
Marko B commentededit
Comment #2
Marko B commentedComment #3
dawehnerThis has to be a feature of imagefield
Comment #4
Marko B commentedHmm so imagefield adds code to views filters?
Comment #5
dawehnerWell can't you simply check for file id != 0?
Comment #6
Marko B commentedI got a little creative, as i have default image when there is no image i made it that filter checks if there is
FID=!327957 and then it just lists nodes with image. Guessing this could also work if there was no default image and then imagefield would be empty. But you do need relationships and many people dont think of them
often as possiblity, and also this is a "file" part of views, I would assume this was part for file attachments and not for imagefield. Anyway this works. Thanks on idea Dereine.
Comment #7
quicksketchImageField utilizes FileField, thus this is a duplicate of #480508: Create a "has file" filter/sort (then expose it to the user)
Comment #8
chinita7 commented@deepM can you tell me how to have the filter that allows enter FID manually?? Because I set the filter for "(field_pic) - fid" but it shows only the selection of "- Any -" "True" "False". And also how did you find the FID of the default image?
Comment #9
Marko B commentedList the nodes that have default image and add field that shows FID, you need to have relationship enabled to see Files.
Comment #10
chinita7 commented@deepM Thanks it works ! I actually hadn't set the relationship.