Drupal - 计算字段 - 分类法术语权重?

时间:2011-04-09 16:07:48

标签: drupal-6 taxonomy

使用Computed Fields模块,我可以从特定词汇表中获取分类术语权重吗?

谢谢

1 个答案:

答案 0 :(得分:0)

$terms = taxonomy_node_get_terms_by_vocabulary($node, VID_OF_MY_VOC, 'vid');
$weight = $terms[VID_OF_MY_VOC]->weight;