would be nice if notify would be sent if a child is added to a parent that is subscribed

this would also be very handy (and i need it for current project so will likely do the code myself)

so i guess with my last post the admin/settings UI would be something like checkboxes for various things to notify on:

- content
- comments
- chilldren
.... maybe others over time???

Comments

ju.ri’s picture

thanks! this would be quite essential for my site too.

liquidcms’s picture

well i didnt do a patch to module but we have coded the function to a custom module specifically for the project we are working on

basically:

- we use relativity module to attach children (node type B) to a node type A
- site members may click a link to "subscibe" to specific A nodes
- members may also attach B nodes to an A node

the custom code uses subscription module routines to basically:

- whenever someone creates a B type node it notifies everyone that had subscribed to the parent A node.

if this sounds like what you are looking for email me and i can send you the code.

Peter Lindstrom
LiquidCMS - Content Management Solution Experts

ju.ri’s picture

sounds great. actually what i need is that people get notified when their own nodes have new child attachments via relativity node.
so that would be the "autosubscribe" function plus the functionality you described minus some of the user interface (are the subscribe buttons optional in the original module?). this would be with drupal 5.0...
email is on the way

arthurf’s picture

Status: Active » Postponed (maintainer needs more info)

So the feature description is the following:

User subscribes to specific taxonomy term.

If a child term is created, user is sent a notification

Is this what you're looking for?

liquidcms’s picture

nope.. nothing to do with taxonomy.

myself and ju.ri are both using relativity module.

This module allows you to add "children" to a node using a url such as:

/node/add/content_mytype/parent/232

where 232 is the node you want to attach to and content_mytype is the type you are attaching as a child.

arthurf’s picture

Huh.... what it seems like to me is that the subscriptions module needs to have some kind of api that allows other modules to relate content to a subscription- ie: something that says, if you're subscribed to node X you should also be subscribed to node Y.

This might be something to push toward in a 2.0 release. Can you think of other modules and/or situations where this would be helpful?

liquidcms’s picture

not sure i can think of other sues off the top of my head.. but seems certainly possible there would be some.

the userpoints module as an api which basically calls module_invoke_all to call its own hook that other modules may take advantage of... this is a great way to extend a module's integration. I wrote a module which uses the userpoints api and it only took me a about 1/2 hour to write.

a similar sort of api which provides a hook_subscription would have allowed me to add what did in a much easier fashion - although pretty easy anyway.

You might want to check out that module for ideas.

Also, admin/settings to define the email would be useful - i will need to add that myself for my current project.

cheers,

gustav’s picture

Version: 4.7.x-1.x-dev » 6.x-1.x-dev
Status: Postponed (maintainer needs more info) » Active

Child pages do not only exist for the node relativity module but also for the book module and probably others. It would be nice to be able to subscribe to the creation of a child page in a book too.

The new 5.x-2 version of the subscription module has been written in a more modular form which is meant to make it easier to allow other modules to plug in and add subscriptions in the way suggested in this thread. There is no documentation of the API yet though, see http://drupal.org/node/194570.

It would be nice if someone could investigate whether the API is flexible enough to allow adding the ability to subscribe to the creating of child pages.

salvis’s picture

This should be easy to do using hook_subscriptions_queue_alter() and subscriptions_queue(), but it needs to be done separately for each module.

Ideally, there'd be add-on modules for book module, node relativity module, etc....

Anyone?

salvis’s picture

Issue summary: View changes
Status: Active » Closed (outdated)