Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试在 tpl 中打印节点类型,但看不到我使用的代码是:type != 'commissions'): ?>
有任何想法吗?
干杯
tpl 文件中有一个完整的节点对象。也许你可以:
$node->type;
Try this $node= node_load($nid); // $nid = your node ID $type=$node->type; then check ($type!='commissions')