Download & Extend

Conditionally display Taxonomy: All Terms field

Project:Views Custom Field
Version:6.x-1.0
Component:Documentation
Category:support request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

The ordinary Taxonomy: All Terms field prints a complete list of the node's terms, limited by the vocabulary of my choice. That's just what I need, but I only want to print it if the node is of the right type.

With other fields, I've had great success doing this:

<?php if($data->node_type == my_custom_content_type): {
  print
$data->node_title;
} endif
?>

Trouble is, the All Terms field isn't in the $data variable. Is there some kind of relationship I can create to put it there?

Or maybe term_data_name could be used instead, but I don't understand why that only prints one of the node's many terms.

Comments

#1

Subscribe. I am having loads of trouble access the TIDs for a node from this field. Any help would be great.

#2

Likewise.

#3

me three