By zahor on
I've tried messing around with the image.module function image_get_random in order to get it to display more than one thumnail, but I've been unsucessful. Can anyone tell me how I can do that?
I've tried messing around with the image.module function image_get_random in order to get it to display more than one thumnail, but I've been unsucessful. Can anyone tell me how I can do that?
Comments
And how do you display the
And how do you display the title of the thumnails?(mine will be products, so I'd like to have the name of each one displayed)
Views block
Ah, the Views module to the rescue again. Here's how you would create a sitebar block (it should work similarly for a page view as well):
In my limited testing, it seems to take unique random nodes, but if not, under the "Filters" heading, add a "Node: Distinct" filter.
(Username formerly my full name, Richard Eriksson.)
Thanks!!! (and some advice for others)
For some reason, I had trouble following the above instructions in IE 7, whenever I tried to add a field, or filter or argument, it kept saying none were defined and didnt provide me with the drop down menu to add them. I used another computer with IE 6 and it worked just fine.
But it works great, and is just what I was looking for.
Thanks for the help Richard!
Unfortunately Drupal 6.x
Unfortunately Drupal 6.x Views version doesn't show the "Image: Display Image" field in the Fields selection. Is there another way to do this in Drupal 6.x?
Correction: I think it's the IMAGE module of version 6.x that doesn't provide the image field to be chosen in views yet.