Hey, I have created the following page view which takes a taxonomy term (which is actually the album name in Image module) as argument. Now, what is happening is, when I click link 2 or 3 or next or last in pagenation, i dont see the next node (image) at all. Incidenatlly, this works in preview mode!
$view = new view;
$view->name = 'images';
$view->description = '';
$view->tag = 'undefined';
$view->view_php = '';
$view->base_table = 'node';
$view->is_cacheable = '0';
$view->api_version = 2;
$view->disabled = FALSE; // Edit this to true to make a default view disabled initially
$view->display = array();
$display = new views_display;
$display->id = 'default';
$display->display_title = 'Defaults';
$display->display_plugin = 'default';
$display->position = '1';
$display->display_options = array (
'style_plugin' => 'default',
'style_options' =>
array (
),
'row_plugin' => 'node',
'row_options' =>
array (
'teaser' => 0,
'links' => 1,
),
'relationships' =>
array (
),
'fields' =>
array (
'title' =>
array (
'id' => 'title',
'table' => 'node',
'field' => 'title',
'label' => '',
'relationship' => 'none',
'link_to_node' => 1,
),
'teaser' =>
array (
'id' => 'teaser',
'table' => 'node_revisions',
'field' => 'teaser',
'label' => '',
'relationship' => 'none',
),
'body_1' =>
array (
'id' => 'body_1',
'table' => 'node_revisions',
'field' => 'body',
'label' => '',
'relationship' => 'none',
),
'fid' =>
array (
'id' => 'fid',
'table' => 'upload',
'field' => 'fid',
'label' => '',
'type' => 'separator',
'separator' => ', ',
'empty' => '',
'relationship' => 'none',
'link_to_file' => 1,
'only_listed' => 1,
),
),
'sorts' =>
array (
),
'arguments' =>
array (
'name' =>
array (
'id' => 'name',
'table' => 'term_data',
'field' => 'name',
'default_action' => 'ignore',
'style_plugin' => 'default_summary',
'style_options' =>
array (
'count' => true,
'override' => false,
'items_per_page' => 25,
),
'wildcard' => 'all',
'wildcard_substitution' => 'All',
'title' => '',
'default_argument_type' => 'fixed',
'default_argument' => '',
'validate_type' => 'none',
'validate_fail' => 'not found',
'glossary' => 0,
'limit' => '0',
'case' => 'none',
'path_case' => 'none',
'transform_dash' => 0,
'relationship' => 'none',
'default_argument_fixed' => '',
'default_argument_php' => '',
'validate_argument_node_type' =>
array (
'blog' => 0,
'poll' => 0,
'image' => 0,
'picasa_guser' => 0,
'forum' => 0,
'book' => 0,
'page' => 0,
'story' => 0,
),
'validate_argument_php' => '',
'add_table' => 0,
'require_value' => 0,
),
),
'filters' =>
array (
'type' =>
array (
'id' => 'type',
'table' => 'node',
'field' => 'type',
'operator' => 'in',
'value' =>
array (
'image' => 'image',
),
'group' => 0,
'exposed' => false,
'expose' =>
array (
'operator' => false,
'label' => '',
),
'relationship' => 'none',
'expose_button' =>
array (
'button' => 'Expose',
),
),
),
'items_per_page' => 1,
'use_ajax' => '1',
'use_pager' => '1',
'pager_element' => 0,
'offset' => 0,
);
$view->display['default'] = $display;
$display = new views_display;
$display->id = 'page';
$display->display_title = 'Page';
$display->display_plugin = 'page';
$display->position = '2';
$display->display_options = array (
'defaults' =>
array (
'access' => true,
'title' => true,
'header' => true,
'header_format' => true,
'header_empty' => true,
'footer' => true,
'footer_format' => true,
'footer_empty' => true,
'empty' => true,
'empty_format' => true,
'use_ajax' => true,
'items_per_page' => true,
'offset' => true,
'use_pager' => true,
'pager_element' => true,
'use_more' => true,
'distinct' => true,
'link_display' => true,
'style_plugin' => true,
'style_options' => true,
'row_plugin' => true,
'row_options' => true,
'relationships' => true,
'fields' => true,
'sorts' => true,
'arguments' => true,
'filters' => true,
),
'relationships' =>
array (
),
'fields' =>
array (
),
'sorts' =>
array (
),
'arguments' =>
array (
),
'filters' =>
array (
),
'menu' =>
array (
'type' => 'normal',
'title' => 'im',
'weight' => '0',
),
'path' => 'CA',
);
$view->display['page'] = $display;
Comments
Comment #1
merlinofchaos commentedYou don't see the image; what do you see? The rest of the node?
Comment #2
merlinofchaos commentedSet the status back to active when you've replied. Thanks!
Comment #3
chandrabhan commentedNext pages are totally blank. Neither title and body nor links. Only the first page is showing everything.
Comment #4
merlinofchaos commentedThis one was obscure, but I found and fixed the bug. It'll be available in beta3 which I am rolling shortly.
Comment #5
chandrabhan commentedWorking perfectly! However, I have a separate issue with attachment display type. Logged a separate case.