我正在尝试在 tpl 中打印节点类型,但没有太多外观我使用的代码是:type != '佣金'):?>
有什么想法吗?
干杯
tpl 文件中有一个完整的节点对象。也许你可以:
$node->type;
Try this
$node= node_load($nid); // $nid = your node ID
$type=$node->type;
then check ($type!='commissions')