Hello,

I'm working on the website http://obr.brookes.ac.uk/

and I'm having some trouble getting the front page teasers to work as I would like. I am using the Views module, and imagecache

I'd like to get the thumbnail image to appear in-line with the teaser text, so there is not such a huge white area to the right of the photo.

How would I go about this? I have been looking through the template files tonight but nothing jumped out at me yet...

Thanks so much for your help,

Regards

Mike

Comments

Turtle4288’s picture

For the benefit of other "L"earners; my node.tpl.php had the following code:

<?php 
if(++$itemcounter==1){
  $content = 
  ereg_replace("imagecache/news_thumbnail/([^>]+>)", "imagecache/news_mainimage/\\1<br style=\"clear:both;\"/>", $content);
  $content = 
  ereg_replace("<div class=\"field field-type-image field-field-picture\">", "<div class=\"field field-type-image field-field-picture top-post\">", $content);
}else{
  $content = 
  ereg_replace("<div class=\"field field-type-image field-field-picture\">", "<div class=\"field field-type-image field-field-picture non-top-post\">", $content);
}; 
?>

To fix my problem I added "non-" before "top-post" in the first instance... This made the first post text inline with the the image.

I think its just a feature of the "leaf" theme I am using.

I suppose "non-top-post" is a CSS definition? Is that what they're called?