简体   繁体   中英

How to print taxonomy field in Drupal views-view-table.tpl

I'm trying to figure out how to print a taxonomy term field in the Drupal 7 views-view-table.tpl file.

The scenario is that I have a content type called Song, and then a taxonomy vocabulary called Album. I have a view page called that displays all songs in a table and they are grouped by the album term. I've added custom fields to the album taxonomy so people can buy the album. I need to print those fields right above each table.

Hope that makes sense. I appreciate any help!

Any reason to print the taxonomy term fields in views-view-table.tpl ? I understood that you want to print fields from the term.

I'd suggest you add a relationship to the view (to the taxonomy term) and add this way you can use all the term fields inside your view.

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