Can Views 2 show grid of thumbnails from image nodes?
socceronly - January 9, 2009 - 22:29
Staring and clicking and searching...
One search turned up this was not possible, but it was a few months old.
I just want to to use Views to display a grid of thumbnails from image nodes.
Cheers
JM

*
Is this a problem with the image module and views?
I see merlin responded here, but I am wondering if this is still an issue and I am just barking up the wrong tree
http://drupal.org/node/326117
?
In the issue linked from the
In the issue linked from the issue you list above (http://drupal.org/node/220295), there's a fresh patch for image/views2 integration.
===
"Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime." - Lao Tzu
"God helps those who help themselves." - Ben Franklin
"Search is your best friend." - Worldfallz
*
Drupal just lost two site and I just lost two jobs because I could not figure this out.
The 'solutions' even if I could figure them out are dated before merlin states that the problem will not be fixed in views.
One of the threads is almost a year long, with recent problem posts.
I don't get it. I am not assuming it is trivial by any means, but if the attached image is a node with an id, and it has a thumbnail... I don't get why it is a problem.
_
The issue is not a views issue-- views integratoin is a function of the module wishing to integrate with views, not views itself. It's not that earl won't fix views, but that the 'fix' belong to the image module. And the image module thread I link above tracks the progress of the issue. I only took a quick look, but the shear size of the issue would indicate to me that it's not a trivial implementation.
That said, the productive thing to do would be to test the patch in #127 and assist with the issue rather than complain that someone hasn't already done it for you.
===
"Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime." - Lao Tzu
"God helps those who help themselves." - Ben Franklin
"Search is your best friend." - Worldfallz
I got it to work on
I got it to work on http://www.alanlouie.com with the following
Views2
Imagefield CCK
Thickbox
Imagecache
If it's what you want, I can write it up (I have a few posts around here recently made during my development of it.
Basically everything is related through a taxonomy, Views2 finds all imagefield nodes with a requested taxonomy then uses imagecache to generate thumbnails.
My two previous posts on this are here
http://drupal.org/node/360269
http://drupal.org/node/128080
*
I intend to switch to this next and give it a shot.
Cheers.
*
"That said, the productive thing to do would be to test the patch in #127 and assist with the issue rather than complain that someone hasn't already done it for you."
WTF?
1. The point about merlin posting was that his post came long after the posts suggesting a fix, meaning they most likely don't work yet.
2. Like I said in my post I assume it is not trivial, but I am curious as to why. I was trying to understand the problem.... sorry I don't have a computer science degree to jump into dev/head/cvs/monkey farm/code base/tree something or other.
Why is this forum full of spitefull sounding replies like '... complain that someone hasn't done it for you.' I did no such thing.
_
Sorry if it sounded spiteful, it truly wasn't meant to be... such is a risk of online communication i guess.
That said, wtf indeed.
You don't need a computer science degree to apply a patch. Nice try, but that bird won't fly. It's an excuse that inevitably comes from people who contribute nothing, yet complain what they need is not available and no one is working on for them, whenever they're called on it.
The way features get incorporated into releases is that users interested in the feature try the patches, report results, and the maintainer adds the feature when it works. The feature you want is not related to views, and an issue with a patch for it is available in the image module's issue queue. You can either post useless complaints in the forum or contribute that same time to helping make the feature available. If that sounds snipey, so bit it-- it's still true.
As for the 'spiteful' sounding replies in the forum-- it's been my experience they are almost always in response to people who don't contribute anything complaining about what they need not being available and no one working on it for them for free-- and are, therefore, well deserved.
and yes, this one is snipey....
===
"Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime." - Lao Tzu
"God helps those who help themselves." - Ben Franklin
"Search is your best friend." - Worldfallz
*
WTF x 2
How on earth do you expect someone using the program for the first time to both contribute, and understand the kind of things like issue cues, head, cvs ect.... You need a manual to understand the manual.
You have to be joking.
Also you keep trying to point out to me the problem is not in views, I know. But if the patch, solution is posted in July and the merlinofchaos is posting in October that the problem still lies with image, you want me to run out and install the patch? This at the very least should tell you I read it and didn't understand it.
Seems like a pretty darn reasonable question to ask.
I see all sorts of questions I would be happy to post answers to were I more confident with the software. Not there yet. Hopefully I can enact some retroactive penance for reading a year long thread I don't understand and posting a question about it by helping some new people in the future.
I think it is completely dckish to keep repeating that I am some kind of arsehole for using the software when I haven't programmed anything and don't know how to install a patch yet.
_
You're way overreaching-- i didn't call you anything, and didn't use any derogatory terms. And I most certainly did not criticize your lack of knowledge. what I did do was criticize your seeming unwillingness to assist yourself and your use of the tired old 'sorry, i don't have a degree in computer science' excuse that gets trotted out on this forum any time someone gets asked to actually try to help themselves.
You posted a complaint about a feature you need not being available. It is. And it's being actively worked on. Like it or not, posting in the forum in the manner you did is both useless and unproductive. Instead of simply ignoring your post, as I'm sure many others have done, I was trying to point you in the right direction toward getting what you seek. No worries, i won't make that mistake again.
What you seem to be completely missing, is that you didn't ask how to patch-- or how to do anything for that matter. You never said you read the issue or didn't understand it or ask for help in understanding it. Instead you went off on me because you didn't like my answer, which is fine, but then don't wtf x 2 when i respond in kind. Had you simply said, 'ok i read the issue and I dont get it. How do i patch the module to try it out?" or something even remotely similar I would have been more than happy to tell you. If you doubt that, feel free to read through my tracker and see how many times i've gone out of my way to assist people in the past-- sometimes even setting up test environments to do so.
It's a shame really, because in the amount of time you've wasted complaining in this thread you could probably have learned how to apply a patch and try the feature out-- and perhaps have what you're searching for.
fwiw, you'll find yourself a great deal more successful getting assistance in the forums if you make at least a cursory effort at trying to help yourself and being open to learning something new rather than simply complaining on what feature is not available or not working. Learning how to patch is probably the single most useful thing you could learn at this point-- even if only to help yourself.
And people shouldn't have to read between the lines to try and figure out that 'you read and didn't understand it'. If you have a question ask it. If you're already done some things explain what you did.
in any case, i do wish you luck.
===
"Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime." - Lao Tzu
"God helps those who help themselves." - Ben Franklin
"Search is your best friend." - Worldfallz
Try this
Modules used
-------------
CCK (Content Construction)
Image
Views
Recipe
------
- Use CCK and add a field to content type Image. This can be a simple rado box, something like: "Include in gallery?".
- Be sure you've configured the Image thumbnail size to something usable. I like to use "scale and crop".
- Build a page view of type "Node" that publishes Image nodes (teaser) to a grid format. Again, choose the grid layout best for your theme (2,3,4 ...columns).
- Use the following filters in the view:
- Node published = Yes
- Node type = Image
- "Include in gallery" field = "on".
- Create some image nodes and be sure to select "Include in gallery?"
- The page will render but with one issue: Image titles, taxonomy, published by etc are also displayed. This can be resolved by creating a custom node.tpl.php file (name it node-image.tpl.php) in your theme that omits "printing" of title, texonomy etc.
Views can be tough to understand; installing the Views Advanced Help module can help.