incopatibility with views 2 (missing pager)
jannalexx - February 2, 2009 - 03:53
| Project: | ACL |
| Version: | 6.x-1.0-beta4 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
| Issue tags: | views |
Description
incompatibility with views 2, paging is not possible (viewable) using per node validation with the argument: Node ID from URL
original thread: http://drupal.org/node/366419 (No pager in individual "Node ID from URL" ... )

#1
bug reproduced in a clean installation, details in the views thread, seems to be an acl issue, if so we will move it here
#2
What exactly are you trying to accomplish with ACL? ACL is an infrastructure module — it doesn't do anything if you install it by itself. You need another module (like Forum Access, for example) that will make use of ACL before you get any benefit from it.
#3
I can try to explain what I will to do with acl but not really the issue right now. It has to do with galleries per content type with special rights to users
just enabling acl and views 2 you can reproduce the issue in a clean installation, strange but simple as that
try to build a view like this one:
$view = new view;$view->name = 'commview1';
$view->description = 'views-acl bug';
$view->tag = 'bug';
$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('fields', array(
'status' => array(
'label' => 'pub',
'type' => 'yes-no',
'not' => 0,
'exclude' => 0,
'id' => 'status',
'table' => 'node',
'field' => 'status',
'relationship' => 'none',
),
'title' => array(
'label' => 'title1',
'link_to_node' => 0,
'exclude' => 0,
'id' => 'title',
'table' => 'node',
'field' => 'title',
'relationship' => 'none',
),
'type' => array(
'label' => 'type1',
'link_to_node' => 0,
'exclude' => 0,
'id' => 'type',
'table' => 'node',
'field' => 'type',
'relationship' => 'none',
),
'subject' => array(
'label' => 'commtitle1',
'link_to_comment' => 1,
'exclude' => 0,
'id' => 'subject',
'table' => 'comments',
'field' => 'subject',
'relationship' => 'none',
),
));
$handler->override_option('arguments', array(
'nid' => array(
'default_action' => 'default',
'style_plugin' => 'default_summary',
'style_options' => array(),
'wildcard' => 'all',
'wildcard_substitution' => 'oles',
'title' => '',
'default_argument_type' => 'node',
'default_argument' => '',
'validate_type' => 'node',
'validate_fail' => 'not found',
'break_phrase' => 1,
'not' => 0,
'id' => 'nid',
'table' => 'node',
'field' => 'nid',
'relationship' => 'none',
'default_options_div_prefix' => '',
'default_argument_user' => 0,
'default_argument_fixed' => '',
'default_argument_php' => '',
'validate_argument_node_type' => array(
'page' => 'page',
'story' => 'story',
),
'validate_argument_node_access' => 0,
'validate_argument_nid_type' => 'nid',
'validate_argument_vocabulary' => array(),
'validate_argument_type' => 'tid',
'validate_argument_php' => '',
'override' => array(
'button' => 'Override',
),
'validate_argument_is_member' => 0,
),
));
$handler->override_option('filters', array(
'status_extra' => array(
'id' => 'status_extra',
'table' => 'node',
'field' => 'status_extra',
),
'status' => array(
'operator' => '=',
'value' => '1',
'group' => '0',
'exposed' => FALSE,
'expose' => array(
'operator' => FALSE,
'label' => '',
),
'id' => 'status',
'table' => 'node',
'field' => 'status',
'relationship' => 'none',
),
));
$handler->override_option('access', array(
'type' => 'none',
));
$handler->override_option('title', 'testing acl-views bug');
$handler->override_option('empty', 'nothing?');
$handler->override_option('empty_format', '1');
$handler->override_option('use_ajax', TRUE);
$handler->override_option('items_per_page', 2);
$handler->override_option('use_pager', '1');
$handler->override_option('pager_element', 1);
$handler->override_option('use_more', 1);
$handler->override_option('distinct', 0);
$handler->override_option('style_options', array(
'grouping' => '',
));
$handler->override_option('row_options', array(
'inline' => array(
'field_photo_perioxes_fid' => 'field_photo_perioxes_fid',
),
'separator' => '',
));
$handler = $view->new_display('block', 'Μπλοκ', 'block_1');
$handler->override_option('block_description', '');
$handler->override_option('block_caching', -1);
$handler = $view->new_display('page', 'Σελίδα', 'page_1');
$handler->override_option('path', 'photocollection');
$handler->override_option('menu', array(
'type' => 'none',
'title' => '',
'description' => '',
'weight' => 0,
'name' => 'navigation',
));
$handler->override_option('tab_options', array(
'type' => 'none',
'title' => '',
'description' => '',
'weight' => 0,
));
#4
Then please try to enable some other node access module (such as Content Access) and Views 2, without ACL.
Have you checked whether you can see the other nodes outside of Views 2? What happens if you change the page size to 1 or to 3?
#5
! Content Access : YES same issue exactly, that means there may be a connected, relevant behavior inside those modules
even in preview mode views2 can reproduce the bug
anything else seems normal, page size seems irrelevant as checked in different circumstances
#6
Ok, back to #366419: No pager in individual "Node ID from URL" imagefield views (for a per node gallery view)...
#7
More info. modules Taxonomy Access Control Lite http://drupal.org/project/tac_lite
and Taxonomy Access Control http://drupal.org/project/taxonomy_access
same behavior after rebuilding permissions
#8
experimental solution:
http://drupal.org/node/366419#comment-1233418
#9
Ah, thanks. This definitely confirms that it's an issue between Views 2 and the node access mechanism in core, which is activated by installing any node access module.
#10
Automatically closed -- issue fixed for 2 weeks with no activity.