In the 'fields' section of my view I chose to display taxonomy terms for various vocabularies.

If I select a table view, everything works out great, no problems whatsoever.

However, if I select a list view as I want, the various labels for the taxonomy fields show up, but the taxonomy term itself does not. For instance I get this output:

Title: random title here
Rating:
Category:
Warning(s):
Year: 2006

instead of:

Title: random title here
Rating: G
Category: comedy
Warning(s): none
Year: 2006

I downloaded the latest files directly from CVS, but this still happens.

Here is my view:

  $view = new stdClass();
  $view->name = 'movie_reviews';
  $view->description = 'Movie Reviews';
  $view->access = array (
);
  $view->page = TRUE;
  $view->page_title = 'My Movie Reviews';
  $view->page_header = '';
  $view->page_header_format = '1';
  $view->page_type = 'list';
  $view->url = 'sections/movies/reviews';
  $view->use_pager = TRUE;
  $view->nodes_per_page = '25';
  $view->sort = array (
    array (
      'tablename' => 'node',
      'field' => 'created',
      'sortorder' => 'DESC',
      'options' => '',
    ),
  );
  $view->argument = array (
  );
  $view->field = array (
    array (
      'tablename' => 'node',
      'field' => 'title',
      'label' => '',
      'handler' => 'views_handler_field_nodelink',
    ),
    array (
      'tablename' => 'term_node_4',
      'field' => 'name',
      'label' => 'Rating',
    ),
    array (
      'tablename' => 'term_node_2',
      'field' => 'name',
      'label' => 'Category',
    ),
    array (
      'tablename' => 'term_node_3',
      'field' => 'name',
      'label' => 'Warning(s)',
    ),
    array (
      'tablename' => 'node_field_int_data_field_year',
      'field' => 'field_int',
      'label' => 'Year',
    ),
  );
  $view->filter = array (
    array (
      'tablename' => 'node',
      'field' => 'status',
      'operator' => '=',
      'options' => '',
      'value' => '1',
    ),
    array (
      'tablename' => 'node',
      'field' => 'type',
      'operator' => 'OR',
      'options' => '',
      'value' => array (
  0 => 'content-movie_review',
),
    ),
    array (
      'tablename' => 'term_node_1',
      'field' => 'tid',
      'operator' => 'AND',
      'options' => '',
      'value' => array (
  0 => '4',
),
    ),
    array (
      'tablename' => 'node',
      'field' => 'distinct',
      'operator' => '=',
      'options' => '',
      'value' => array (
),
    ),
  );
  $view->requires = array(node, term_node_4, term_node_2, term_node_3, node_field_int_data_field_year, term_node_1);
  $views[$view->name] = $view;

Comments

merlinofchaos’s picture

Status: Active » Fixed

Ahh I'd left out some info that _views_handle_field needed in list view, which was available in table view. Fixed now.

Permanently Undecided’s picture

You seriously rock, man!

Anonymous’s picture

Status: Fixed » Closed (fixed)
krf’s picture

Version: 6.x-2.x-dev » 5.x-1.6-beta
Status: Closed (fixed) » Active

That problem happens for me in 1.6 release again; i've nearly the same setup as the original poster. However, in 1.6 even the labels are not displayed when choosing "list view". "Table view" and all others work great.
Seems to be a regression because 1.5 works fine for me.

merlinofchaos’s picture

Status: Active » Closed (fixed)

Fixed. (new bug is Duplicate of http://drupal.org/node/135881 ) -- marking this one 'closed' to return it to its previous state. If more discussion of the new bug is necessary, please use the URL just mentioned. Thanks!