I am using an unpublished node type as an on-site contact form and I would like to get a notification when one is created.
I would also like a notification to be sent to the author when I comment on that page.
I'm pretty sure this worked previously.

I now work with :
D6.12
M&N 6.2

was this changed ? because I'm not getting any notifications now for these nodes.

Comments

David Goode’s picture

Priority: Normal » Minor
Status: Active » Closed (works as designed)

Hey,

On line 650 of notifications_content it specifically checks to only do published nodes. The first thing I would look at is whether you really want to be notifying about unpublished nodes, because this is a little bit of a perversion of the normal use case--if you are notifying lots of people about something, that is kinda the definition of "publish" ie "to make public" :-) How are users gonna see them? Would it be easier to modify views and stuff not to display them and leave them published?

Failing that, you could try to hack that line and see if it works for you. I'm not totally sure as to the reasoning behind this functionality, but if you want to try to get this committed maybe make an option in the notifications_content settings for whether or not to deal with unpublished stuff. However, I think in general best practice is to only publish nodes that are marked as such ;-), so probably this wouldn't be a good addition to notifications unless a lot of other people need it.

Thanks,
David

jose reyero’s picture

As a side note, if you want the administrator to be notified about unpublished nodes, you can use triggers and actions instead.

nassimo3’s picture

With triggers there is no condition for node tagged with term
Subscribe ...

hixster’s picture

Category: feature » bug
Status: Closed (works as designed) » Active

reopening - Regarding unpublished nodes - if you use notifications on unpublished nodes (comments, node updates) , the status message confirms that the message has been sent, but it hasn't.(because the node in unpublished)

It should be possible to send notification for nodes that are unpublished, or have the option to. Lots of editorial workflows , work on the basis of nodes being unpublished - other modules provide the ability for the unpublished nodes to be accessed/viewed by other users.