Closed (fixed)
Project:
Notifications
Version:
5.x-1.0-beta3
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
8 Jun 2008 at 22:16 UTC
Updated:
3 Oct 2008 at 12:12 UTC
Hi,
I've built a small notification plug-in that just allows users to subscribe to a single cck field that used in one of my content types.
I now want that the emails users receive not only contain the fact that some content was added, I'd like them to contain a link to that new content, and maybe ever it's teaser.
I can't find the theme function/hook that will enable me to do so.
can you help me?
Thanks, Alex.
Comments
Comment #1
luke76 commentedHi
have you thought about contributing this plugin? I'm having to use the 'subscribe to taxonomy' method, when i'd rather use a cck field, and am not a programmer. also, i can't seem to get the 'Subscribe to this' links to appear on content anyway! (only subscribable through user account).
I have posted an issue on this with no response yet. Anyway, CCK would be very useful.
Thanks!
Comment #2
alphaXp commentedThe thing is that right now my plug-in doesn't provide a UI for choosing what fields you wand to allow subscription to, I just hard coded this setting...
If I'll generalize my plug-in sometime, I'll gladly contribute it.
Comment #3
alphaXp commentedAny advice?
after looking around in messaging setting It seems all I need is a way to change the [event_list] token in the digest event, and insert some additional data in it.
I've manage to do this by changing the notification_content module, something like:
case 'event types':
// Node inserts are not grouped by node but all together. The digest will look like:
// New content has been submitted
// - Story Title1 by Author1
// - Event Title2 by Author2
$types[] = array(
'type' => 'node',
'action' => 'insert',
'name' => 'New content of type [type-name] has been submitted',
'line' => '[type-name] [title] by [author-name] [node-teaser]',
'digest' => array('node', 'type'),
Is it possible to change this behavior without hacking the modules?
Comment #4
jose reyero commentedYou have some options to change the message formats:
- Editing the templates for each event type.
- Providing / using new custom tokens, any module can plug-in into the token mechanism and build any custom text as a token.
- Using the theming functions provided by the modules
theme_notifications_digest_body()
Plus there are lots of hooks all across the module you can implement, including the _message_alter() hook at the end of the sending process.
Anyway, if you guys are missing any themeable function or hook at some point, let us know...
Comment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.