Hi. I love the views module. But what I'm having trouble with is I have certain pages that lists the posts in certain categories. But I want to add next to each post whether they have an image in the post or not. Similar to eBay and how they have that picture icon. Anyhow, I know how to do this in straight PHP (basic PHP knowledge) but I don't know how to go about this using the views module.
Is it possible easily?
Thank you.
Comments
Comment #1
jermb commentedor I'd like to know if I should be going about this a completely different way. Any help
Comment #2
merlinofchaos commentedHave you looked at the views documentation at http://drupal.org/handbook/modules/views ?
Comment #3
jermb commentedYes I'm reading it now. I've just had an epiphany.. now I understand how powerful Views is. So it looks like something like this should be done with Views - correct? I have quite a bit of time constraints right now (I need to get this running in a few days) so I don't want to go down the wrong path.
Comment #4
merlinofchaos commentedSorry to be so long getting back to you (and you with a time constraint).
To do this, you need to tell views the proper information. I'm not actually sure how to do that offhand, because I'm not sure what constitutes whether or not the node contains an image; but if you can come up with a function that tells you yes or no, you can probably add that as a field to Views through a small module that exposes a pseudo table to Views.
It's not the *easiest* thing in the world to do, but it is possible.
It's not something Views itself will likely be able to do for you, though, so it'll require some programming on your part.