Search code examples
drupal-7drupal-theming

Drupal 7 print node type


I am trying to print the node type in a tpl but not having much look the code I am using is: type != 'commissions'): ?>

Any ideas?

Cheers


Solution

  • Try this $node= node_load($nid); // $nid = your node ID $type=$node->type; then check ($type!='commissions')