I've got a story which consists entirely of one large HMTL DL (definition list) tag. There is no logical (or, indeed, legal) place to insert a <!--break--> for the teaser view; anyplace it goes will result in an unclosed DL, which will generate badly formed HTML when the page is viewed. I can put the <!--break--> at the very top of the story (resulting in an empty teaser), or at the very bottom, resulting in a very long teaser. Neither is ideal.
It would be nice if you could specify an alternate text to use for the teaser, instead of just some leading subset of the story text. Then I could make the teaser be the first entry in the list, which would be perfect. Can this be done?
-- roy@panix.com
* Roy Smith [08/03/08 16:56]:
teaser, instead of just some leading subset of the story text. Then I could make the teaser be the first entry in the list, which would be perfect. Can this be done?
You can use the nodeteaser module. It creates a field in your content type where you can specify an arbirary teaser.
Cool, thanks!
On Mar 8, 2008, at 11:35 AM, Walter Garcia-Fontes wrote:
- Roy Smith [08/03/08 16:56]:
teaser, instead of just some leading subset of the story text. Then I could make the teaser be the first entry in the list, which would be perfect. Can this be done?
You can use the nodeteaser module. It creates a field in your content type where you can specify an arbirary teaser.
-- Walter Garcia-Fontes Barcelona -- [ Drupal support list | http://lists.drupal.org/ ]
-- roy@panix.com
I just watched http://www.masteringdrupal.com/screencast/new-features- drupal-6. It turns out that 6.x has exactly this feature built into the core. Very cool.
On Mar 8, 2008, at 11:35 AM, Walter Garcia-Fontes wrote:
- Roy Smith [08/03/08 16:56]:
teaser, instead of just some leading subset of the story text. Then I could make the teaser be the first entry in the list, which would be perfect. Can this be done?
You can use the nodeteaser module. It creates a field in your content type where you can specify an arbirary teaser.
-- Walter Garcia-Fontes Barcelona -- [ Drupal support list | http://lists.drupal.org/ ]
-- roy@panix.com