简体   繁体   中英

How to display taxonomy terms in block, drupal?

I've a taxonomy vocabulary

voca1
-item 1.1
--item 1.1.1
--item 1.1.2
--item 1.1.3
-item 1.2
--item 1.2.1
--item 1.2.2
--item 1.2.3
--item 1.2.4
--item 1.2.5
--item 1.2.6
-item 1.3
--item 1.3.1
--item 1.3.2
--item 1.3.3

when user click voca1, I want to display the terms by following at page.

item 1.1
item 1.1.1                 item 1.1.2                      item 1.1.3


item 1.2
item 1.2.1                 item 1.2.2                      item 1.2.3
item 1.2.4                 item 1.2.5                      item 1.2.6


item 1.3
item 1.3.1                 item 1.3.2                      item 1.3.3

How can I do?

我猜您正在寻找的是taxonomy_term_load函数,将其挖掘出来将找到出路。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM