Expose tid as field in node views | nid in term views

q0rban - April 27, 2009 - 20:23
Project:Node Auto Term [NAT]
Version:6.x-1.1-beta3
Component:Views Integration
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs review
Description

Not sure if this is the best way to go about this, but I was trying to get the tid that was created from the node available as a field in node views, and the nid of the node that created the term available as a field in term views.

I also took out the nid from node views since the node base table already provides nid, and tid from term views since term_data already provides tid for those.

The nice thing about this is that you can now create term views with a field that links to the node that created it, or a node view where a field links to the term it created.

AttachmentSize
nat_views_tid_field.patch2.2 KB

#1

Zen - April 28, 2009 - 03:34
Component:Code» Views Integration

#2

marcvangend - June 26, 2009 - 14:06

Excellent patch, I needed this, thank you q0rban! I haven't found any bugs so far, if I do, I'll let you know.

 
 

Drupal is a registered trademark of Dries Buytaert.