How do you print the private message link in a node template please?

This what I've tried


print render($content['field_privatemsg']);

Many thanks for your help

1 Answer 1


Assuming you want to create a link to the author, you should be able to create a simple link in the template - Field that links to a path/url defined with Tokens, is it possible?

It would follow something like: http://www.example.com/messages/new/[node:author]

You can see a list of tokens here: https://drupal.org/node/390482#token-node

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.