0

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

Chris Archer
  • 47
  • 1
  • 8

2 Answers2

1

There is a whole node object in the tpl file.Perhaps you can:

$node->type;
TonyMao
  • 11
  • 2
0

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

Aparna M K
  • 16
  • 2