Hi,
I was trying to display a link if a node was comment-able but the status variable $node->comment was returning NULL when used in my node.tpl.php, it seems to be fine if the node is loaded using node_load(), then the $node->comment = 2 or 1 or 0 according to my the comment display setting for the node (2 for read/write) but when the node is rendered it goes back to NULL. This is confirmed by comparing the output of the 'dev load' and 'dev render' tabs of the devel module; 2 in load and NULL in render.

Comments

Status: Active » Closed (outdated)

Automatically closed because Drupal 6 is no longer supported. If the issue verifiably applies to later versions, please reopen with details and update the version.