Closed (won't fix)
Project:
Notifications
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
25 Apr 2008 at 14:41 UTC
Updated:
21 May 2010 at 16:26 UTC
The digests in notifications are great but we have run into one issue. Nodes get sent out as node teasers with "read more" links which make sense. But if your digest contains comments, it includes the *full* comment instead of a snippet.
In digest mode, this doesn't make sense. *Everything* should be in a snippet to keep it consistent.
Or perhaps a new option to set "notifications digest entry length" that trims nodes & comments to same length before sending...
Comments
Comment #1
m3avrck commentedThis is the trim text function I use on all of my projects...
/', $lastchar)) {
$text = substr($text, 0, -1);
}
// ? and ! are ok to end a title with since they make sense
if ($lastchar != '!' and $lastchar != '?') {
$text .= '...';
}
return $text;
}
?>
Comment #2
m3avrck commentedHmm that got broke, maybe this works better:
Comment #3
jose reyero commentedNot sure what you mean about the digest mode. The default line should be: 'New comment by [comment-author-name]: [comment-title]' as defined on notifications_content module, unless you've added some theming there.
Whatever, we are using tokens for all text replacement, it should be possible to have a token for comment-teaser...
Comment #4
jose reyero commentedAbout tokens, this would be a nice feature request for token module.