I need some guidance either on the UI or the intended functionality of the notifications_scheduler sub-module. I've successfully setup content notifications and taxonomy notifications. Now I wanted to create a digest that users can subscribe to. I performed the following steps:
- Enabled notifications_scheduler (had to download job_scheduler and job_scheduler_trigger from https://github.com/developmentseed/job_scheduler_trigger).
- Created a new trigger with the job scheduler (admin/config/system/job_scheduler)
- Created a new scheduled notification (admin/config/messaging/notifications/scheduler)
- Assigned the trigger to the scheduled notification (admin/structure/trigger/job_scheduler)
Now I can see my scheduled notification in the notifications settings menu (admin/config/messaging/notifications/scheduler), but I don't know how to allow users to subscribe to this notification.
I've set my permissions to allow users to manage their own subscriptions; as I said, the subscription process seems to work fine for the content and taxonomy sub-modules. Do I just not understand the purpose of the scheduler sub-module, or am I missing an important setting in the UI?
If someone can help me out, I'd love to write up some documentation for using the scheduler sub-module.
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | 04.png | 18.89 KB | antares.iv |
| #5 | 01.png | 19.77 KB | antares.iv |
| #5 | 02.png | 34.06 KB | antares.iv |
| #5 | 03.png | 27.06 KB | antares.iv |
| #4 | scheduled-notifications-1274512-D7.patch | 793 bytes | webflo |
Comments
Comment #1
areynolds commentedOk, I think I'm starting to understand this a bit better. notifications_scheduler only creates a notification event (it extends Notifications_Event), it doesn't create a new subscription (for which it would need to extend Notifications_Subscription_Simple).
So if I create a scheduled notification, I've only created a notification event which should be triggered according to the schedule I set. The question is, who would receive such notifications?
Comment #2
areynolds commentedComment #3
antares.iv commentedI've gotten exactly that far and no farther. The preview of the notification is exactly what I need, but I don't see it in the list of subscriptions to let it be subscribed to.
Comment #4
webflo commentedScheduled notifications are not special. Every event can be scheduled. You need to change the interval to "Scheduled" for these subscriptions.
Try this patch.
Comment #5
antares.iv commentedThe actual issue, is how do you subscribe to this notification?
Comment #6
webflo commentedGoto notifications/subscription/add and create a new subscription.
Comment #7
antares.iv commentedI don't see anywhere to create a new subscription. Besides the modules listed in the OP is anything else required?
Comment #8
webflo commentednotifications/subscription/add is an url like http://example.com/notifications/subscription/add. Enable notifications_ui to access this page.
Comment #9
zengenuity commentedUsing the patch from #4, I can get the notifications to go out as digest on a cron run. But, it seems like you can really only have one time duration for sending. In D6 you could allow the user to choose Daily Digest, Weekly Digest, Twice a Day etc. Now you only have Immediately and Scheduled, which I can set but has to be the same for all users. Is that right, or is there something I'm missing?
Comment #10
kriskhaira commentedPatch #4 enables the digest and Scheduled features for me.
Comment #11
peter mcandrew commentedThanks webflo, is there a way to add a subscription to a 'role' had a look round but couldn't see anything,
thanks
Comment #12
chrisroane commentedFor those interested, I just posted a similar issue to this: #1515526: Notifications Scheduler: Digest Options and User Settings