I would like to be able to send a direct link to the edit screen in my moderation approval messages. When using pathauto, the %node_url token expands out into the pathauto generated path, which for the most part is what one wants. Where it does not work for me is that I want to construct the http://www.site.com/node/1234/edit form of the node, which cannot be done based on %node_url.
The attached patch is a one-line addition: it adds a %nid token to the list of valid tokens for the moderation mail. I use this to create the /node/1234/edit form of the URL.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | add_nid-230133-6x.patch | 940 bytes | pwolanin |
| modr8_add_nid_to_replacements.patch | 710 bytes | scott.mclewin |
Comments
Comment #1
pwolanin commentedcommitted the above to 5.x-2 branch, and the attached to 6.x (HEAD).
Comment #2
scott.mclewin commentedGreat! Thanks for the really prompt turnaround.
Comment #3
pwolanin commentednp - though the there are a couple other pending bugs to be fixed before I make a new release
Comment #4
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.