Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-2.2
Component:
taxonomy data
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
9 Feb 2009 at 21:25 UTC
Updated:
7 Apr 2009 at 23:20 UTC
I am using Views 2. I created a view called 'splogs' and a template called 'views-view-fields--splogs.tpl.php' in order to customize the output.
I have been able to output term name field by using <?php print $fields['tid']->content;?> .
But, how do I output that term's id? I have looked at all the available fields in Theme Information, and at the data in the $row variable (no taxonomy information available in $row).
Any suggestions? Thanks
Comments
Comment #1
merlinofchaos commentedThis one can be a little tough, normally tids aren't exposed. You might be forced to look in $view->result -- that may well contain a tid. If it does not, I'm not sure you'll be able to get one without writing a field handler for that purpose.
Comment #2
apersaud commentedInstead of getting the tid of the term through the view, I decided to get it through the node:
Comment #3
merlinofchaos commented