While totally unaware of the fact that Drupal 4.2.0 had separate teasers, or the debate when the feature got removed, I decided I wanted 'teaser content' that is unequal to the first few paragraphs of the node.

So I created a simple solution: a {!--cleanbreak--} tag. If you use 'cleanbreak' instead of 'break', the real node content starts just below the tag - and the stuff above the tag is ONLY part of the teaser.

While the Drupal gods are deciding what to do / reworking 'patch 6363', the enclosed patch may work for someone.
(Note that when that someone implements this 'cleanbreak' tag in their local code, they will have to do some upgrading of their own, when a future version of Drupal comes out which supports the separate teaser, and does not support the 'cleanbreak' tag. I might attach an upgrade script here at that point, since I will have the same problem.)

Related:
patch 6363: http://drupal.org/node/view/6363
related issue: http://drupal.org/node/view/6819

CommentFileSizeAuthor
cleanbreak.patch759 bytesroderik

Comments

Steven’s picture

I don't think this a good fix for the problem. I think if you go through the trouble of providing custom teasers, then you should do it through nodeapi: that way you can offer custom teasers even for node types that don't carry a body, or that have multiple bodies.