Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I am looking at how I might combine Notifications, Messaging, and the Message module.
It looks to me like a new Notification type, with the ability for some Messaging mechanisms to provide a container for the message based on Message Type.
Has anyone put any thought or work into this?
Comments
Comment #1
amitaibuCan you share your use case -- how do you see Message being used in the notifications?
Comment #2
Grayside CreditAttribution: Grayside commentedLet me preface this by saying I'm working with Message in D7 for my personal site, but this (and other forthcoming issues) are bound to D6.
I want to use Message as a primary message store for a big site. It will be used to track a variety of user events and actions, some specific to our user stories.
All events will be recorded as Messages, and from there used to populate Views, RSS feeds, and trigger Notifications. So Message will need to provide one or more Notifications types. I haven't dug too far into that end of things yet, so hopefully I'm not too far off base in how I describe what I see as technical difficulties.
Comment #3
amitaibuI need to think about it, but:
There is no longer an extra field. Message Type is a fieldable entity - which means you can attach a "Use for notification" checkbox; You can assign "user reference" to mark the users that already got the message; You can have a user reference to users that still didn't see the message, etc'
Comment #4
Grayside CreditAttribution: Grayside commentedI'm stuck in D6 for this functionality. I would gladly work on the D7 angle with an idea toward backporting, but the amount of extra work in building with and without entities seems like it might add too much overhead to my timeline. If we can identify a solution that would be somewhat portable but swapping out the crud sort of stuff, that is a possibility.
Comment #5
Grayside CreditAttribution: Grayside commentedEDIT: I just saw message_realm is already in a separate table, showing my forgetfulness. Perhaps the Event ID won't be needed.
Comment #6
amitaibuGrayside,
D6 is obviously more limited than the D7 version. It sounds that all this "meta-data" if you wish to add in D6 will need their own tables. D7 might use similar logic but benefit form fields.
Comment #7
Grayside CreditAttribution: Grayside commentedAre you open to new features in D6 ahead of D7?
(By the way, I would be delighted to add this to the OG patches for a Chicago conversation if you've time.)
Comment #8
Grayside CreditAttribution: Grayside commentedComment #9
bluegeek9 CreditAttribution: bluegeek9 as a volunteer commented