I set up a view that filters by 'Signup User: Current User' with the relationship: 'Signup (User)'. My pager is set to Ajax, 10 per page and Full. The results are cut off at 10 and no pager shows up. My events do have repeats by adding 'Unlimited" number of values in the CCK field. If I remove the Signup filter and relationship, it pages normally.
After further investigation, it seems that when the CCK Date field has repeating instances, the paging disappears in the view.
If I leave the Signup filter and relationship, and delete all the repeating dates in all my events, the pager shows up and the view behaves normally. I tried Node Repeat with Signup Multiple, but the process for the user and content creator is long and convoluted (problems like, the user is able to cancel signup for one instance in the date repeat, etc etc).
Also, if I leave the CCk Date field to unlimited, and group the date field in the view, the view shows the pager. However, this is not a desired behavior since I want the person to see all their signed up events separately.
Here's my exported view:
$view = new view;
$view->name = 'signup_pastupcoming';
$view->description = 'A list of all signups for the current user';
$view->tag = 'Signup';
$view->view_php = '';
$view->base_table = 'node';
$view->is_cacheable = FALSE;
$view->api_version = 2;
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
$handler = $view->new_display('default', 'Defaults', 'default');
$handler->override_option('relationships', array(
'uid' => array(
'label' => 'Signup user',
'required' => 1,
'id' => 'uid',
'table' => 'signup_log',
'field' => 'uid',
'override' => array(
'button' => 'Override',
),
'relationship' => 'none',
),
));
$handler->override_option('fields', array(
'title' => array(
'label' => '',
'alter' => array(
'alter_text' => 0,
'text' => '',
'make_link' => 0,
'path' => '',
'link_class' => '',
'alt' => '',
'prefix' => '',
'suffix' => '',
'target' => '',
'help' => '',
'trim' => 0,
'max_length' => '',
'word_boundary' => 1,
'ellipsis' => 1,
'html' => 0,
'strip_tags' => 0,
),
'empty' => '',
'hide_empty' => 0,
'empty_zero' => 0,
'link_to_node' => 1,
'exclude' => 0,
'id' => 'title',
'table' => 'node',
'field' => 'title',
'relationship' => 'none',
'override' => array(
'button' => 'Override',
),
),
'field_from_value' => array(
'label' => '',
'alter' => array(
'alter_text' => 0,
'text' => '',
'make_link' => 0,
'path' => '',
'link_class' => '',
'alt' => '',
'prefix' => '',
'suffix' => '',
'target' => '',
'help' => '',
'trim' => 0,
'max_length' => '',
'word_boundary' => 1,
'ellipsis' => 1,
'html' => 0,
'strip_tags' => 0,
),
'empty' => '',
'hide_empty' => 0,
'empty_zero' => 0,
'link_to_node' => 0,
'label_type' => 'none',
'format' => 'default',
'multiple' => array(
'multiple_number' => '',
'multiple_from' => '',
'multiple_to' => '',
'group' => 0,
),
'repeat' => array(
'show_repeat_rule' => '',
),
'fromto' => array(
'fromto' => 'value',
),
'exclude' => 0,
'id' => 'field_from_value',
'table' => 'node_data_field_from',
'field' => 'field_from_value',
'relationship' => 'none',
'override' => array(
'button' => 'Override',
),
),
));
$handler->override_option('sorts', array(
'field_from_value' => array(
'order' => 'ASC',
'delta' => '-1',
'id' => 'field_from_value',
'table' => 'node_data_field_from',
'field' => 'field_from_value',
'override' => array(
'button' => 'Override',
),
'relationship' => 'none',
),
));
$handler->override_option('arguments', array(
'uid' => array(
'default_action' => 'not found',
'style_plugin' => 'default_summary',
'style_options' => array(),
'wildcard' => 'all',
'wildcard_substitution' => 'All',
'title' => 'Current signups for %1',
'default_argument_type' => 'fixed',
'default_argument' => '',
'validate_type' => 'user',
'validate_fail' => 'not found',
'break_phrase' => 0,
'not' => 0,
'id' => 'uid',
'table' => 'users',
'field' => 'uid',
'relationship' => 'uid',
'default_options_div_prefix' => '',
'default_argument_user' => 0,
'default_argument_fixed' => '',
'default_argument_php' => '',
'validate_argument_node_type' => array(),
'validate_argument_node_access' => 0,
'validate_argument_nid_type' => 'nid',
'validate_argument_vocabulary' => array(),
'validate_argument_type' => 'tid',
'validate_argument_php' => '',
'validate_user_argument_type' => 'uid',
'validate_user_roles' => array(),
'validate_user_restrict_roles' => 0,
'validate_argument_signup_status' => 'any',
'validate_argument_signup_node_access' => 0,
),
));
$handler->override_option('filters', array(
'status' => array(
'operator' => '=',
'value' => '1',
'group' => '0',
'exposed' => TRUE,
'expose' => array(
'operator' => '',
'identifier' => 'status',
'label' => 'Signup status',
'optional' => 0,
'remember' => 0,
),
'id' => 'status',
'table' => 'signup',
'field' => 'status',
'relationship' => 'none',
),
'status_1' => array(
'operator' => '=',
'value' => '1',
'group' => '0',
'exposed' => FALSE,
'expose' => array(
'operator' => FALSE,
'label' => '',
),
'id' => 'status_1',
'table' => 'node',
'field' => 'status',
'override' => array(
'button' => 'Override',
),
'relationship' => 'none',
),
));
$handler->override_option('access', array(
'type' => 'user_signup_list',
'signup_user_argument' => 'uid',
));
$handler->override_option('cache', array(
'type' => 'none',
));
$handler->override_option('title', 'Current Signups');
$handler->override_option('empty', 'This user has not signed up for any matching content.');
$handler->override_option('empty_format', '1');
$handler->override_option('use_ajax', TRUE);
$handler->override_option('items_per_page', 4);
$handler->override_option('use_pager', '1');
$handler->override_option('use_more', 0);
$handler->override_option('use_more_always', 0);
$handler->override_option('distinct', 0);
$handler->override_option('style_plugin', 'list');
$handler = $view->new_display('page', 'Page', 'page');
$handler->override_option('path', 'user/%/signups1/current');
$handler->override_option('menu', array(
'type' => 'none',
'title' => 'Current',
'description' => '',
'weight' => '-2',
'name' => 'navigation',
));
$handler->override_option('tab_options', array(
'type' => 'tab',
'title' => 'Signups',
'description' => '',
'weight' => '10',
'name' => 'navigation',
));
$handler = $view->new_display('block', 'Upcoming', 'block');
$handler->override_option('arguments', array());
$handler->override_option('filters', array(
'status' => array(
'operator' => '=',
'value' => '1',
'group' => '0',
'exposed' => FALSE,
'expose' => array(
'operator' => FALSE,
'label' => '',
),
'id' => 'status',
'table' => 'node',
'field' => 'status',
'override' => array(
'button' => 'Use default',
),
'relationship' => 'none',
),
'date_filter' => array(
'operator' => '>=',
'value' => array(
'value' => NULL,
'min' => NULL,
'max' => NULL,
'default_date' => 'now',
'default_to_date' => '',
),
'group' => '0',
'exposed' => FALSE,
'expose' => array(
'operator' => FALSE,
'label' => '',
),
'date_fields' => array(
'node_data_field_from.field_from_value' => 'node_data_field_from.field_from_value',
),
'date_method' => 'OR',
'granularity' => 'day',
'form_type' => 'date_select',
'default_date' => 'now',
'default_to_date' => '',
'year_range' => '-3:+3',
'id' => 'date_filter',
'table' => 'node',
'field' => 'date_filter',
'override' => array(
'button' => 'Use default',
),
'relationship' => 'none',
),
'signup_user_current' => array(
'operator' => '=',
'value' => '1',
'group' => '0',
'exposed' => FALSE,
'expose' => array(
'operator' => FALSE,
'label' => '',
),
'id' => 'signup_user_current',
'table' => 'signup_log',
'field' => 'signup_user_current',
'override' => array(
'button' => 'Use default',
),
'relationship' => 'uid',
),
));
$handler->override_option('block_description', '');
$handler->override_option('block_caching', -1);
$handler = $view->new_display('block', 'Past', 'block_1');
$handler->override_option('sorts', array(
'field_from_value' => array(
'order' => 'DESC',
'delta' => '-1',
'id' => 'field_from_value',
'table' => 'node_data_field_from',
'field' => 'field_from_value',
'override' => array(
'button' => 'Use default',
),
'relationship' => 'none',
),
));
$handler->override_option('arguments', array());
$handler->override_option('filters', array(
'signup_user_current' => array(
'operator' => '=',
'value' => '1',
'group' => '0',
'exposed' => FALSE,
'expose' => array(
'operator' => FALSE,
'label' => '',
),
'id' => 'signup_user_current',
'table' => 'signup_log',
'field' => 'signup_user_current',
'override' => array(
'button' => 'Use default',
),
'relationship' => 'none',
),
'status_1' => array(
'operator' => '=',
'value' => '1',
'group' => '0',
'exposed' => FALSE,
'expose' => array(
'operator' => FALSE,
'label' => '',
),
'id' => 'status_1',
'table' => 'node',
'field' => 'status',
'override' => array(
'button' => 'Use default',
),
'relationship' => 'none',
),
'date_filter' => array(
'operator' => '<',
'value' => array(
'value' => NULL,
'min' => NULL,
'max' => NULL,
'default_date' => 'now',
'default_to_date' => '',
),
'group' => '0',
'exposed' => FALSE,
'expose' => array(
'operator' => FALSE,
'label' => '',
),
'date_fields' => array(
'node_data_field_from.field_from_value' => 'node_data_field_from.field_from_value',
),
'date_method' => 'OR',
'granularity' => 'day',
'form_type' => 'date_select',
'default_date' => 'now',
'default_to_date' => '',
'year_range' => '-3:+3',
'id' => 'date_filter',
'table' => 'node',
'field' => 'date_filter',
'override' => array(
'button' => 'Use default',
),
'relationship' => 'none',
),
));
$handler->override_option('distinct', 1);
$handler->override_option('block_description', '');
$handler->override_option('block_caching', -1);
Comments
Comment #1
dwwWhy didn't you just provide the information I was asking for over at #438702: Views Integration -- Failure to display all results instead of creating a duplicate issue? ;)