Teaser Image and Text

bejii - April 19, 2009 - 19:25

Hi,

I was wondering if anyone could direct me to a good tutorial or even a few tips for how to setup custom teasers. I would like to have teasers in blocks for a site...but I would like to see the text wrap around an image in the teaser. Also is there a way to have an image in a teaser be a certain size, preferably smaller than the original. And is there a way to fix that annoying issue with the teaser lengths, it seems like no matter what char length you specify drupal cuts the teaser off after the first paragraph.

Bejii

In order to have teasers

bohz - April 20, 2009 - 07:23

In order to have teasers listed in a block, I would create a teaser listing block with views (http://drupal.org/project/views);

Concerning thumbnail images in teasers (and teaser blocks), I would suggest you try filefield+imagefield and use Imagecache to create thumbnail presets to display in teasers for the desired content type.

http://drupal.org/project/cck
http://drupal.org/project/filefield
http://drupal.org/project/imagefield
http://drupal.org/project/imagecache

To wrap text around (and position) images I would use CSS

For teaser text lenght, I never had the same issue you describe: teasers either split after the # of characters specified in admin/content/node-settings, or at the lenght you specify in "split summary at cursor" when editing a node. Sorry
Also, you can enable per-node-type teaser lenght with http://drupal.org/project/teaserbytype

hope this hlps...

Thanks

bejii - April 20, 2009 - 23:52

thanks a lot for that that really helped me out. I just have one additional question...I have installed the teaserthumbnail module but for some reason when I try and make a view, the thumbnail of an attached image doesn't show up. Even though i specified 'Teaser thumbnail' as one of the fields. Any idea how to fix this?

Bejii

anyone?

bejii - April 23, 2009 - 02:08

anyone?

Teaser thumbnail

konrad1811 - September 27, 2009 - 14:48

Teaser thumbnail is ok.
But it's not allways perfect - does no thumbnail from images loaded from image_node for example using image_assist

hello drupal world!

 
 

Drupal is a registered trademark of Dries Buytaert.