Needs review
Project:
Notify by Views
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
27 Jun 2009 at 17:07 UTC
Updated:
27 Jul 2009 at 10:52 UTC
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
| Comment | File | Size | Author |
|---|---|---|---|
| custom_teaser_length.patch | 5.6 KB | stella |
Comments
Comment #1
glasswool commentedwhen 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?