Heya.

I'm using the nodecomment module so node form template works perfectly with it since comment is now a node/content type. But how do you print the nid of the current url where comment (as node type) is attached to?

<?php print $node->nid; ?> and <?php print $node_url ?> does not seem to work and even <?php print $title ?>. That makes sense anyway because the comment node has not been created yet.

Comments

halloffame’s picture

I need the parent node url or nid in the node-form template.