Posted by hbfkf on April 2, 2007 at 12:02pm
Hi all,
When I edit a node (by visiting node/12/edit), I do not get an edit form for the node's teaser. Why is this so? Have I misconfigured something here?
Thanks a lot,
Kaspar
Hi all,
When I edit a node (by visiting node/12/edit), I do not get an edit form for the node's teaser. Why is this so? Have I misconfigured something here?
Thanks a lot,
Kaspar
Comments
Here's the deal....
Here's how it works. Drupal takes the top of your post and make that the teaser. It does it smartly based on character count. You can edit that at /admin/content/node-settings. So, it's automated.
Want to override that? Simple enough. after the part of the body that you want to be the teaser put
<!--break-->and drupal will know to make the teaser start at the beginning of the body and end at this point.Or, there is the excerpt module at http://drupal.org/project/excerpt. But it hasn't been upgraded to drupal 5 yet. You can get a patch that will do that at http://drupal.org/node/97494#comment-206424.
--
Matt
http://www.mattfarina.com
Wow, thanks
Hi Matt,
Just to clarify things for me:
Thanks a lot for the links; I'll go with Excerpt.
Kaspar
CRUD
Drupal does store the teaser. When a node is created or updated the body is truncated (or modules like excerpt can change it) and then stored in the teaser column of the node_revisions table.
--
Matt
http://www.mattfarina.com