Active
Project:
Views Custom Field
Version:
6.x-1.0
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
8 Oct 2009 at 23:39 UTC
Updated:
22 Mar 2012 at 05:14 UTC
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
Comment #1
jorge commentedSubscribe. I am having loads of trouble access the TIDs for a node from this field. Any help would be great.
Comment #2
jennycita commentedLikewise.
Comment #3
fletch11 commentedme three
Comment #4
blauerberg commentedsubscribe.