按方面显示术语(词汇表)

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了按方面显示术语(词汇表)相关的知识,希望对你有一定的参考价值。

  1. <?php if ($terms): ?>
  2. <?php /* sort taxonomy links by vocabulary 27 */
  3. $terms27 = taxonomy_node_get_terms_by_vocabulary($node->nid, 27);
  4. if ($terms27) {
  5. print '<div class="terms">Forums: ';
  6. foreach ($terms27 as $key => $term27) {
  7. $lterm27 = l($term27->name, 'taxonomy/term/'.$term27->tid);
  8. print $lterm27.' - ';
  9. }
  10. print '</div>';
  11. }
  12. ?>
  13. <?php endif; ?>

以上是关于按方面显示术语(词汇表)的主要内容,如果未能解决你的问题,请参考以下文章

将词汇表中的术语显示为链接列表的块

基于词汇的 Drupal 变化展示

Drupal 7 在视图中获取分类术语列表

NBA英语资料-NBA 篮球术语词汇

MSP的一些术语

MSP的术语