It used to be that you could just check this using $node->nid, however when I try to use this in Drupal 5, it doesn't work. Any ideas?

Comments

josesanmartin’s picture

$node->nid only works in page.tpl.php when displaying a node in full page view.

For instance, $node->nid won't work in the frontpage.

Can't you use that in node.tpl.php?

José San Martin

José San Martin
http://www.chuva-inc.com/

smithaa02’s picture

Actually, I am viewing the page in full page view at http://mysite.com/node/1/view and it still isn't working.

Anybody have any ideas on why?

smithaa02’s picture

...seems to work now