I'm modifying page.tpl.php and what to write code like ...

<?php if ( I page is /node/53 ) { ?>
    <!-- some html specify to node 53 -->
<?php } else { ?>
   <!-- do the usual stuff -->
<?php } ?>
 

The problem is I don't know how to construct the condition in the if-statement. What is the Drupal technique to determine which page you are at?

Comments

2houseplague’s picture

if (!$node->nid)

http://profitlabinc.com