Hi,

May I know how to do a views with a thumbnail image and a teaser?

Let's say I have 10 taxonomy/categories, and I would like to poll the latest ONE post from each category and display in my block views, then my front page will be 10 blocks views with the latest ONE post for each category, just display the thumbnail image of each category post and one paragraph or teaser.

I know views, but I just couldn't get to create view with this kind, and image module.

Any feedback, suggestions, response will be much appreciated.

Thanks!

Comments

bohz’s picture

one way to achieve what you need would be to create a view (obviously):

in the default settings you'd configure the row style to node -> teaser (if you're satisfied on how your teasers look) or to fields (than select the thumbnail + teaser field [you can specify the lenght here] +whatever field you'need)

next, configure the items to display to 1, with no pager;

in the filters, add node:published -> yes and taxonomy:term ID ->the first of the 10 terms of which you need to display the latest entry; you may also need to set up a node:type filter if you have different content types (note: you can add any filter that may be useful for your setup)

in sort criteria set node:post date -> descending

Now you can add a block display for each of the terms you want to show, overriding only the taxonomy:term ID filter settings for each one of your terms. you may also need to override the node:type filter

You should end up with 10 block displays (rename them meaningfully!) to include in your pages

PLEASE NOTE: i am not sure if this would be the best method in terms of efficency/performance; there are certainly other methods but at the moment this is what i'd suggest

Unfortunately I never used the image module so I cannot help you with that. I knw it treats images as node so I am unsure how this applies to row style:fields.

cheers

yelvington’s picture

If you use Panels, you can do it all with one view.

bohz’s picture

Right!
I completely forgot to mention panels...
thanks

dnaromance’s picture

Hi all,

Thank you! You're far too kind!

Yes, I'm using Panel + Views modules. And also yes, I'm using image module. And yes, I knew Drupal treat image as a node, that's what exactly what I faced since and then. When I try to make it as field, the image just wont show. But when it as a node, the image thumbnail is run, the title too big, the thumbnail size is not consistent, and teaser even I trim it also, everything just not look nice.

I'm almost pulling my hair off. I know how to use a panel and display 10 blocks in the front page, and I also know to create views for all my categories, my problem just wanna show title, thumbnail, plus teaser or maybe title plus thumbnail will be good enough. My major problem is with image.

You all might refer this http://www.sinchew-i.com/liveoutloud/

Sorry, forget about the language, but I know they're also using Drupal, and the block is like what I want. (image plus teaser)

Anyway, helps form anyone I appreciated. Thanks.

bohz’s picture

If possible in your setup, you could use filefield+imagefield (+imagecache+imageapi) to manage images, at least for the content you want to place into your blocks. This way images/thumbs would be fields, not nodes, therefore much more manageable within views.

dnaromance’s picture

Hi,

Thanks again!

I'm trying out this, and I have confident this might solve my case. Will post back here if this work out.

Thanks.

dnaromance’s picture

Hi,

Sorry to say that it doesn't work for me. In fact, I've followed what you've told me. I used filefield + imagefiled, then I create field type views. The imagefield doesn't work for me, it's too big. Where else, I tried attached image, but when I select thumbnail, it just couldn't work.

Damn, I'm pulling my hair off...

bearded’s picture

In my case, one another module TeaserThumbnail is also installed with Drupal6, filefield+imagefield (+imagecache+imageapi) + Views2. For teaser thumbnail I made a preset SMALL and with this the Teaser Thumbnail is well working in teaser on front page. Now, I wanted to add another Preset say, MINI, as inserted into a block with trimmed Title and trimmed Teaser. This block will contain only ONE Item from a specific TAG. I tried it all with Views. Result was: the block displayed the Title and Teaser BUT NO Teaser Image (MINI). Can any body suggest any example with the procedure (in detail) for my needed result? In fact I am a NEWBIE in Drupal environment. Waiting eagerly for help..

anthonyjhall’s picture

Don't know if anyone can help clarify this for me.

I have recently started using "image" nodes i.e. the ones that you get as a standard content type when you install image module. Previously I had always used filefield/imagefield and I had created lots of views using the field "field_image".

Can't remember exactly why I did this.. it must have solved some problem. Now I have a site with tons of image nodes and I've suddenly realized like the poster of this thread that image nodes don't seem to work with the "fields" row style in Views. I think I did encounter this before and rather than dig too deeply into it I just displayed nodes and hid all the taxonomy stuff with CSS.

Now I'm actually trying to set up a simple view of recent images with the purpose of experimenting with views_carousel... but I'm getting nowhere because views carousel doesn't display full nodes and I can't feed it just a thumbnail field. I know I could make a node template which just shows the image but I'd still like to be able to display images as full node outside of views with their body field and taxonomy included.

Is it common knowledge that image nodes can't but displayed by field in views? Aside from this thread and this one on Acquia: http://acquia.com/node/519026 I can't seem to see this topic discussed anywhere.