date browser block display bug

anthonym - March 11, 2008 - 14:40
Project:Date
Version:5.x-2.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

I replied to a post in a Calendar module issue, but then realized it should go here:

I set up a date browser view according to the instructions in the documentation as closely as I could. The page view works fine, but the block does not, there is a junk header: <em>Year</em> of <em>2008</em> and no ability to navigate forward or back in time. Clicking the header (which is a link) goes to the page view, which as I said functions as expected. Aside from the anomaly, the node displayed in the block is the correct one according to the filters and time period. I'm pasting the View export code below in case it might help to solve the issue:

<?php
  $view
= new stdClass();
 
$view->name = 'performance_date_browser';
 
$view->description = '';
 
$view->access = array (
);
 
$view->view_args_php = '';
 
$view->page = TRUE;
 
$view->page_title = 'Recent and Upcoming Performances';
 
$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 = 'date_views_browser';
 
$view->url = 'performance_date_browser';
 
$view->use_pager = FALSE;
 
$view->nodes_per_page = '0';
 
$view->block = TRUE;
 
$view->block_title = 'Recent and Upcoming Performances';
 
$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 = 'date_views_browser';
 
$view->nodes_per_block = '10';
 
$view->block_more = FALSE;
 
$view->block_use_page_header = FALSE;
 
$view->block_use_page_footer = FALSE;
 
$view->block_use_page_empty = FALSE;
 
$view->sort = array (
  );
 
$view->argument = array (
    array (
     
'type' => 'content: field_performance_date',
     
'argdefault' => '2',
     
'title' => '',
     
'options' => 'year',
     
'wildcard' => '',
     
'wildcard_substitution' => '',
    ),
  );
 
$view->field = array (
    array (
     
'tablename' => 'node',
     
'field' => 'title',
     
'label' => '',
     
'handler' => 'views_handler_field_nodelink',
     
'options' => 'link',
    ),
  );
 
$view->filter = array (
    array (
     
'tablename' => 'node',
     
'field' => 'status',
     
'operator' => '=',
     
'options' => '',
     
'value' => '1',
    ),
    array (
     
'tablename' => 'node',
     
'field' => 'type',
     
'operator' => 'OR',
     
'options' => '',
     
'value' => array (
 
0 => 'performance',
),
    ),
  );
 
$view->exposed_filter = array (
  );
 
$view->requires = array(node);
 
$views[$view->name] = $view;
?>

#1

anthonym - March 15, 2008 - 23:58
Version:7.x-1.x-dev» 5.x-2.x-dev

mismarked as HEAD

#2

anthonym - April 15, 2008 - 18:27

Does anyone have a site with a date browser block that does display correctly so I can see what it is supposed to look like?

#3

KarenS - April 22, 2008 - 21:20
Status:active» fixed

I just committed a fix for this. The block heading is not supposed to be showing any navigation (not really enough room for that), just a link to the full view. The link has html in it, and picked up the odd characters from check_plain() because it needed a parameter to indicate that it uses html.

#4

Anonymous (not verified) - May 6, 2008 - 21:22
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.