Allow custom teaser length
stella - June 27, 2009 - 17:07
| Project: | Notify by Views |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Jump to:
Description
Hi,
I've attached a patch which allows the admin user to configure a custom teaser length for node teasers included in the email notification. This is because I didn't want to alter the default site global teaser length which appears on the website. I had to basically duplicate node_teaser() to do this, but this won't be needed in the Drupal 6 version as the D6 version of that function takes an optional teaser length setting.
The patch also includes a small fix to strip carriage returns from html emails.
Cheers,
Stella
| Attachment | Size |
|---|---|
| custom_teaser_length.patch | 5.6 KB |

#1
when displaying teasers, is it possible to display the 'read more' link after a fixed number of lines rather than a fixed number of characters? can it be done without patching the .tpl files?