Active
Project:
Notifications
Version:
7.x-1.x-dev
Component:
Content subscriptions
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
29 Jan 2012 at 17:30 UTC
Updated:
19 Mar 2012 at 07:41 UTC
If you don't use the standard install profile, or if you decide to manually create a body field for a specific content type, changes are big that the field 'body' does not exist. However, Notifcations hard-coded the [node:summary] token in the module, which is empty.
How to fill [node:summary] with another field? Or do I need to make my own classes to override Notifications_Node_Insert_Template?
Comments
Comment #1
scor commentedHave you tried to alter the node:summary token in this particular context by implementing hook_tokens_alter?
Comment #2
BarisW commentedI ended up using
<php? hook_notifications_message_alter() ?>, where I did a<php? $content['teaser'] = '[node:field_discussion_body]'; ?>.So I'll change it into a Feature Request for now, 'cause it would be very nice if the interface let you choose which field to use as teaser.