I understand how to print node fields and custom fields in the page.tpl.php files but how would I go about adding the $content['links'], (or I suppose $content['comments'], but I am really just looking for the links) like it is in the node.tpl.php?

I took a look at the node object and I don't see it in there. I would like to ultimately have the node links printed in two places, and one of the places is easiest to access from the page.tpl.php.

1 Answer 1


Well it looks like it can be pulled off with (in the page.tpl.php files):

$links = node_view($node);
print render($links['links']);

Anyone know if there is a better approach?

  • This has a side-effect that hook_node_view will be called twice for each node visit. So that, it can be that the statistics, logs are not updated correctly.
    – Elin Y.
    Dec 11, 2013 at 14:25

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.