Node link (node id) missing

nurlan.bayaman - October 9, 2008 - 11:55
Project:Field Actions
Version:5.x-2.0-beta2
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:by design
Description

When i'm creating the new node, which triggers (save new node trigger) the action to send the mail to the field referenced user, the node link misses the node id, so recepient receives link like example.com/node/

I presume it's caused by the design of the mail generation, which is generated before the node gets actual ID... is there any workaround to solve this issue?

thanks in advance...

#1

deekayen - January 12, 2009 - 13:55

This is a known issue with implementations of the token module. Automatic Nodetitles has the same problem documented at #192220: some tokens don't work when initially creating a node. You are correct though - at the time the URL is generated for the email, the nid hasn't been generated yet.

The clean way to do these kinds of operations is usually through hook_nodeapi() (the referenced issue discusses node_save()), however I'm unaware of a post-save operation to hook into; the saving is the last thing to happen. I agree emailing a URL with the nid is a reasonable thing to expect, which is why this will remain open, though it might never get closed for 5.x or 6.x.

#2

deekayen - May 8, 2009 - 22:28
Status:active» by design

I know I said I'd keep this open, but the other issue is marked by design and this is the issue same problem.

 
 

Drupal is a registered trademark of Dries Buytaert.