This patch builds on top of the taxonomy notifications module to provide subscriptions to multiple tags. It can be useful in situations like when you are refining to limit a search by tags, and want to provide subscription to those limits. You can build the link to provide such subscriptions like this: notifications/subscribe/%user/taxonomy/tid,tid2,tid3/%tid1,%tid2,%tid3 where %tid1, %tid2 ... are the tids that you'd like to provide subscription. With this scheme, the user will get alert messages when a node is tagged with at least all of the tids. You can set the maximum number of tags supported by changing the define NOTIFICATIONS_MAX_TAG_NO_SUPPORTED. In theory it should work for as many tags as you want with the naming scheme tid, tid2, tid3, tid4... etc. Note that this patch changes the UI tab of Tags to display only subscribed tags (as described in http://drupal.org/node/328244), it displays the multiple tag subscriptions in groups.

CommentFileSizeAuthor
#2 notifications_tagsMultiTagSupport.zip4.05 KBmehmeta

Comments

agence web coheractio’s picture

Hi Mehmeta

I am very interested in the functionality you described. Could you please provide the patch or tell me where I can get it?

Can it work right away for Drupal 5 or be easily ported?

Thanks in advance

Laurent

mehmeta’s picture

StatusFileSize
new4.05 KB

I thought I attached the patch before. Anyway, here's the module file. I don't believe it can work for D5 right away, but I don't think it would be too hard if you diff the two D6 module files and see the changes and apply them to the D5 version.

agence web coheractio’s picture

Many thanks
Laurent

jose reyero’s picture

Status: Needs review » Needs work

This reworked module looks good (though I prefer patches).

There was one hidden cool feature in it about displaying only subscribed terms which I've added into the module reusing your text. This is a big usability improvement.

About subscribing to multiple terms, if you check out the latest improvements it should be easy to add some option with autocomplete fields. Take a look at the new 'Create subscription' forms. Maybe adding some new subscription type like 'multitag'.....

jvieille’s picture

Can we get this committed?
This is very necessary.

Thanks

intent’s picture

Installed this but it doesn't appear to be functional to me. Issues I'm experiencing:

1. Every tag except the first listed is displayed as "Unknown" in both columns in the Tags Subscription table.
2. Upon subscribing user to set of tags, notifications not being sent on node creation.

I very much want this to work, but as of now I just can't seem to get it to work.

* Edited to note that I installed in notifications>notifications_tags folder. I couldn't find any documentation that specifically instructed where to install, so this seemed most logical to me.

PeterChanYC’s picture

Hi list,
@intent: I confirm that the MultiTag Support code is not functioning. After debugging the query, I found that the conditions on f.type is conflicting. So logically there is no alert (when it should) on the multi-tag (CONJUNCTION) feature.

I'm disappointed that there is no DISJUNCTION feature neither. E.g. in a real estate taxonomy, the term Apartment regroups T1, T2, ..., T5 (corresponding to the number of rooms). An alert set for "Apartment" should fire when a node tagged T1, ..., or T5 is created/published/modified.
Or when you have a City tag regrouping several neighborhoods N1, ..., N9. An alert set for City should fire when a neighborhood node N3 is created.

You can take a look at an implementation of both Conjunction and Disjunction features
http://peter.chan.free.fr/drupal/
It's hardcoded, and it would take time to build a package.

mehmeta’s picture

Status: Needs work » Closed (won't fix)

I'm afraid the reworked module attached to the earlier post won't work because it was based on a very old version of notifications and the core module changed a lot since then.

back from 7’s picture

This is a great module idea and im upset its not been added to the functionality of notifications. Are there any other modules that will allow a user to 'subscribe' to a nodes complete taxonomy list.

Example of what I want to do:
User searches: City (orlando) >>State (Florida) >>Farmers Markets

Then they would have a simple 'subscribe' link, so in the future any nodes created and tagged with those terms are sent via email message...

dgici’s picture

It would be really great to have this possibility of narrowing down choices by default. Many websites actually propose this but I don't know how they were coded.