I created a block to show recent content, and nothing shows up in the block, though the page view does list nodes. This seems pretty basic, and I can't figure out what I am missing. What am I missing here?

When I look at the source for the site, it looks like Drupal is trying, but has no content to put into the block:

<div id="block-views-current_exhibition" class="clear-block block block-views">

  <h2>Current Exhibitions</h2>

  <div class="content"><div class='view view-current-exhibition'><div class='view-content view-content-current-exhibition'><div class="item-list"><ul><li><div class='view-item view-item-current-exhibition'></div>
</li><li><div class='view-item view-item-current-exhibition'></div>
</li><li><div class='view-item view-item-current-exhibition'></div>
</li><li><div class='view-item view-item-current-exhibition'></div>
</li><li><div class='view-item view-item-current-exhibition'></div>
</li></ul></div></div><div class='more-link'><a href="/view/viz_arts" class="active">more</a></div></div>

</div>
</div>
        </div>

Here is the result of "exporting" the view:

  $view = new stdClass();
  $view->name = 'current_exhibition';
  $view->description = 'Gallery exhibitions, featured artists, open calls and more';
  $view->access = array (
  0 => '1',
  1 => '3',
);
  $view->view_args_php = '';
  $view->page = TRUE;
  $view->page_title = '';
  $view->page_header = '';
  $view->page_header_format = '1';
  $view->page_footer = '';
  $view->page_footer_format = '1';
  $view->page_empty = '';
  $view->page_empty_format = '1';
  $view->page_type = 'teaser';
  $view->url = 'view/viz_arts';
  $view->use_pager = TRUE;
  $view->nodes_per_page = '3';
  $view->block = TRUE;
  $view->block_title = 'Current Exhibitions';
  $view->block_header = '';
  $view->block_header_format = '1';
  $view->block_footer = '';
  $view->block_footer_format = '1';
  $view->block_empty = '';
  $view->block_empty_format = '1';
  $view->block_type = 'list';
  $view->nodes_per_block = '5';
  $view->block_more = TRUE;
  $view->block_use_page_header = FALSE;
  $view->block_use_page_footer = FALSE;
  $view->block_use_page_empty = FALSE;
  $view->sort = array (
  );
  $view->argument = array (
  );
  $view->field = array (
    array (
      'tablename' => 'node',
      'field' => 'title',
      'label' => 'Title',
      'handler' => 'views_handler_field_nodelink',
      'defaultsort' => 'ASC',
      'options' => 'link',
    ),
  );
  $view->filter = array (
    array (
      'tablename' => 'node',
      'field' => 'status',
      'operator' => '=',
      'options' => '',
      'value' => '1',
    ),
  );
  $view->exposed_filter = array (
  );
  $view->requires = array(node);
  $views[$view->name] = $view;

Comments

amanda’s picture

If I switch the view to "table" (rather than "list"), I get the content I desired. It is only in the list view that it seems not to appear.

amanda’s picture

See: http://drupal.org/node/143924

Updating to the most recent views beta fixed this.