Closed (fixed)
Project:
Date
Version:
5.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Mar 2008 at 14:40 UTC
Updated:
6 May 2008 at 21:22 UTC
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:
$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;
Comments
Comment #1
anthonym commentedmismarked as HEAD
Comment #2
anthonym commentedDoes anyone have a site with a date browser block that does display correctly so I can see what it is supposed to look like?
Comment #3
karens commentedI 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.
Comment #4
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.