We have a need to subscribe to just one tag ,and we have the tid for it hence a module path for the notifications_tag module in order to achieve this was what we considered.

Can you please check the patch that was supplied and let us know if it meets the needs. if not can you let us know the short comings so we can alter the patch and for inclusion in the module.

Comments

geodaniel’s picture

I've added a note to #268852: UI to subscribe to taxonomy terms to point out the back end for that support can be provided by this patch.

jose reyero’s picture

it seems the patch just adds the menu callback, but I see no UI here for that, right?

About direct link subscriptions, we have been purging the modules from them, as technically they may introduce CSRF issues. However, and just for v6.x, there's support for signed links to skip the confirmation form.

Anyway, we have already back-end support for this feature, though may be a bit hidden... There are some examples of this in notifications_content() module

To get a link

taxonomy_get_link('subscribe', array(
  'type' => 'taxonomy',
  'uid' => 1, // User to subscribe
  'fields' => array('tid' => 3), // Your tid here

  'confirm' => FALSE, // Optional, to skip confirmation form
  'destination => ..... // Optional, Destination after confirmation,
  ..................
));

With that you'll get a link which looks like
http://example.com/notifications/subscribe/1/taxonomy/tid/3
and you'll get a confirmation form

So the full back-end support is already done, the only piece missing here is some generic enough and scalable UI

Hope this helps.

darren.ferguson’s picture

Jose,

Thanks, that will work out well for us. I did not see that in the module it must have been well hidden :-)

Will implement that, if we do not need the menu item that works for us. It was purely for building the links and this will do us.

agence web coheractio’s picture

Hi Jose,

Would you be kind enough to post a full implementation code of that taxonomy link ?

Many thanks in advance

Laurent

jose reyero’s picture

Category: task » feature
Status: Needs review » Active
giorgio79’s picture

Fantastic stuff, was just looking for this how to build custom links for subscription on the taxonomy pages themselves. Massively appreciated :P

jose reyero’s picture

Status: Active » Fixed

This is implemented now in the module with several different options.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.