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
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
There is a whole node object in the tpl file.Perhaps you can:
$node->type;
Try this
$node= node_load($nid); // $nid = your node ID
$type=$node->type;
then check ($type!='commissions')