Hi,

I am using Drupal 4.7

I would like to have just 2 lines of teaser (1 image and one line below) and all the rest in the remaining body of the blog post.

How is that possible? Do I need a special module for that?

Thanks much.

Comments

pwolanin’s picture

To insure an exact positioning for the teaser break, you can simply add the tag <!--break--> at the point where you want your teaser to end.

As an automatic (but less exact) alternative, you can go to the post settings: /admin/settings/node and choose a short teaser length ("length of trimmed posts").

---
Work: BioRAFT

Anonymous’s picture

Excellent!
Thanks so much.

Anonymous’s picture

Hi Pwolanin,

I have a slight problem,

As you can see at the bottom of this page - EGADE post - , Drupal doesn´t interpret the code correctly:

http://ocus.com.mx/?q=taxonomy_menu/1/12

I don´t know if it is due to the fact that the blog page doesn t have a teaser field (would I need the flexinode for that?) or is it the input format (It is full HTML right now. If I put it PHP, the image disappears.)?

Thanks for your help.
Michaël

pwolanin’s picture

I'm not sure what it's supposed to look like. You don't need a separate teaser field.

---
Work: BioRAFT

Anonymous’s picture

OK, sorry Pwolanin,

I forgot I erased the !--break-- and the rest of the post as it didn t work before I sent you my reply.

Also, I figured it out: I was using the wysywig and this mad the break tag go into a div tag which created the problem: the break tag was no interpreted.

Now everything is cool.

Thanks much.

Michaël

jonathanchris’s picture

I was wondering if there was a way to add '...' to the end of a teaser. It seems like this should be possible, and I even think I remember seeing this post somewhere unfortunately I'm having trouble tracking it down. If anyone has any insight to this matter, I'd greatly appreciate it.

edit:

Nevermind I found it. You can add it to mymodule_view() like this:

function mymodule_view(&$node, $teaser = FALSE, $page = FALSE) {
	$node->teaser .= '....';
	$node = node_prepare($node, $teaser);
}