There are filters and arguments for the current term's parent, but not the actual fields.

This is easily done with a table alias :) patch on the way...

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

joachim’s picture

Title: add fields for parent terms » add fields for taxonomy parent terms
Status: Active » Needs review
FileSize
2.94 KB

Patch on Views 2.

I've tested this with term views, but not with node. Should work... ;)

merlinofchaos’s picture

Based on joachim's comments, can I get a little more actual testing please? =)

merlinofchaos’s picture

Assigned: Unassigned » dawehner

Still needs some testing.

merlinofchaos’s picture

Assigned: dawehner » bojanz

Re-assigning to bojanz for testing. :)

jeffleeismyhero’s picture

Subscribing.

merlinofchaos’s picture

Assigned: bojanz » Letharion

Reassigning to Letharion for testing? Maybe this will work.

dawehner’s picture

Status: Needs review » Needs work
+++ modules/taxonomy.views.inc	3 Jun 2010 20:18:13 -0000
@@ -324,6 +324,66 @@ function taxonomy_views_data() {
+    'node' => array(
+      'table' => 'term_data',
+      'left_table' => 'term_hierarchy',
+      'left_field' => 'parent',
+      'field' => 'tid',
+    ),
+    'node_revision' => array(
+      'table' => 'term_data',
+      'left_table' => 'term_hierarchy',
+      'left_field' => 'parent',
+      'field' => 'tid',

At least in drupal7 this implicit joins will not exist anymore.

This is just a general comment.

MustangGB’s picture

Issue summary: View changes
Status: Needs work » Closed (won't fix)