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
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

AttachmentSize
custom_teaser_length.patch5.6 KB

#1

glasswool - July 27, 2009 - 10:52

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?

 
 

Drupal is a registered trademark of Dries Buytaert.