Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-2.x-dev
Component:
Views Data
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 May 2006 at 05:25 UTC
Updated:
15 May 2006 at 05:46 UTC
Similar to http://drupal.org/node/55448 and http://drupal.org/node/60027
Changes made to 'popular_recent' view not being applied.
Changes made:
Access: administrator only
Page title: Popular content
Block title: Popular content
Fields: removed 'Total hits'
Filters: Node type Is One Of 'story'
Changes applied to display of edited view, in Block or Page:
none
Export:
$view = new stdClass();
$view->name = 'Popular content';
$view->description = 'Nodes sorted by recent page-views';
$view->access = array (
0 => '3',
);
$view->view_args_php = '';
$view->page = TRUE;
$view->page_title = 'Popular content';
$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 = 'table';
$view->url = 'popular/latest';
$view->use_pager = TRUE;
$view->nodes_per_page = '20';
$view->menu = TRUE;
$view->menu_title = '';
$view->menu_tab = TRUE;
$view->menu_tab_default = TRUE;
$view->menu_weight = '';
$view->block = TRUE;
$view->block_title = 'Popular content';
$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 = 'teaser';
$view->nodes_per_block = '5';
$view->block_more = '1';
$view->block_use_page_header = FALSE;
$view->block_use_page_footer = FALSE;
$view->block_use_page_empty = FALSE;
$view->sort = array (
array (
'tablename' => 'node_counter',
'field' => 'daycount',
'sortorder' => 'DESC',
'options' => '',
),
);
$view->argument = array (
);
$view->field = array (
array (
'tablename' => 'node',
'field' => 'type',
'label' => 'type',
'sortable' => '1',
),
array (
'tablename' => 'node',
'field' => 'title',
'label' => 'title',
'handler' => 'views_handler_field_nodelink',
'sortable' => '1',
),
array (
'tablename' => 'users',
'field' => 'name',
'label' => 'author',
'sortable' => '1',
),
array (
'tablename' => 'node',
'field' => 'created',
'label' => 'created',
'handler' => 'views_handler_field_date_small',
'sortable' => '1',
),
);
$view->filter = array (
array (
'tablename' => 'node',
'field' => 'status',
'operator' => '=',
'options' => '',
'value' => '1',
),
array (
'tablename' => 'node',
'field' => 'type',
'operator' => 'OR',
'options' => '',
'value' => array (
0 => 'story',
),
),
);
$view->requires = array(node_counter, node, users);
$views[$view->name] = $view;
Comments
Comment #1
JasonGrizzlebee commentedRan
in phpAdmin
'views' and 'views_ui' became disabled
enabled 'views' and 'views_ui'
deleted old 'popular_recent' view
added new 'popular_recent' view
edited view: administrator only
success, edit applied to subsequent view
this issue resulted from an incomplete resolution to an earlier issue: http://drupal.org/node/61121
Comment #2
(not verified) commented