Pager not showing
malukalu - May 27, 2009 - 06:16
| Project: | Views |
| Version: | 6.x-2.5 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
I have a feeling its do to the fact that im using the domain access module. I read in another bug post that there might be issues with certain node access modules?
Views 2.5
cck 6.x-2.2
Just creating a simple block view showing just node titles and i cant seem to get the pager to show...

#1
oddly enough it does seem to work for some of my blocks... cant seem to figure out how/why it doesnt for the others.
#2
could you share more informations,
for example is the view embedded into a panel? etc. additional you could export your view here
thx!
#3
Sorry for the delay. Here is my view. So locally on my dev machine i was only ever able to get the pager to display in mini mode...however once I pushed up my instance to a dev server the pagers disappeared completely. I was using panels before however now im just displaying the block in my node template ( by assigning the block to a region )... any ideas?
$handler = $view->new_display('block', 'Movie Photos', 'block_5');$handler->override_option('fields', array(
'field_photos_fid' => array(
'label' => '',
'alter' => array(
'alter_text' => 0,
'text' => '',
'make_link' => 0,
'path' => '',
'alt' => '',
'prefix' => '',
'suffix' => '',
'help' => '',
'trim' => 0,
'max_length' => '',
'word_boundary' => 1,
'ellipsis' => 1,
'strip_tags' => 0,
'html' => 0,
),
'link_to_node' => 0,
'label_type' => 'none',
'format' => 'MovieNodeMedia][thickbox',
'multiple' => array(
'group' => 0,
'multiple_number' => '',
'multiple_from' => '',
'multiple_reversed' => 0,
),
'exclude' => 0,
'id' => 'field_photos_fid',
'table' => 'node_data_field_photos',
'field' => 'field_photos_fid',
'override' => array(
'button' => 'Use default',
),
'relationship' => 'none',
),
));
$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',
'relationship' => 'none',
),
'field_photos_list' => array(
'operator' => '=',
'value' => '1',
'group' => '0',
'exposed' => FALSE,
'expose' => array(
'operator' => FALSE,
'label' => '',
),
'id' => 'field_photos_list',
'table' => 'node_data_field_photos',
'field' => 'field_photos_list',
'override' => array(
'button' => 'Use default',
),
'relationship' => 'none',
),
));
$handler->override_option('title', 'Photo Gallery');
$handler->override_option('items_per_page', 4);
$handler->override_option('use_pager', 'mini');
$handler->override_option('pager_element', 2);
$handler->override_option('style_plugin', 'grid');
$handler->override_option('style_options', array(
'grouping' => '',
'columns' => '4',
'alignment' => 'horizontal',
));
$handler->override_option('block_description', '');
$handler->override_option('block_caching', -1);
im assuming this bit here
$handler->override_option('title', 'Photo Gallery');$handler->override_option('items_per_page', 4);
$handler->override_option('use_pager', 'mini');
$handler->override_option('pager_element', 2);
$handler->override_option('style_plugin', 'grid');
$handler->override_option('style_options', array(
is all that should be needed to display the pager?
#4
here is another one of my views which actually does have the pager working ( mini)
$handler = $view->new_display('block', 'New Trailers and Clips Block', 'block_3');$handler->override_option('relationships', array(
'field_video_nid' => array(
'label' => 'Video',
'required' => 0,
'delta' => '-1',
'id' => 'field_video_nid',
'table' => 'node_data_field_video',
'field' => 'field_video_nid',
'override' => array(
'button' => 'Use default',
),
'relationship' => 'none',
),
'field_thumbnail_fid' => array(
'label' => 'Thumbnail',
'required' => 0,
'delta' => -1,
'id' => 'field_thumbnail_fid',
'table' => 'node_data_field_thumbnail',
'field' => 'field_thumbnail_fid',
'override' => array(
'button' => 'Use default',
),
'relationship' => 'field_video_nid',
),
));
$handler->override_option('fields', array(
'field_movie_nid' => array(
'label' => '',
'alter' => array(
'alter_text' => 0,
'text' => '',
'make_link' => 0,
'path' => '',
'alt' => '',
'prefix' => '',
'suffix' => '',
'help' => '',
'trim' => 0,
'max_length' => '',
'word_boundary' => 1,
'ellipsis' => 1,
'strip_tags' => 0,
'html' => 0,
),
'link_to_node' => 0,
'label_type' => 'none',
'format' => 'plain',
'multiple' => array(
'group' => 0,
'multiple_number' => '',
'multiple_from' => '',
'multiple_reversed' => 0,
),
'exclude' => 1,
'id' => 'field_movie_nid',
'table' => 'node_data_field_movie',
'field' => 'field_movie_nid',
'override' => array(
'button' => 'Use default',
),
'relationship' => 'none',
),
'field_thumbnail_fid' => array(
'label' => '',
'alter' => array(
'alter_text' => 0,
'text' => '',
'make_link' => 0,
'path' => '',
'alt' => '',
'prefix' => '',
'suffix' => '',
'help' => '',
'trim' => 0,
'max_length' => '',
'word_boundary' => 1,
'ellipsis' => 1,
'strip_tags' => 0,
'html' => 0,
),
'link_to_node' => 0,
'label_type' => 'none',
'format' => 'MovieNodeMedia_linked',
'multiple' => array(
'group' => TRUE,
'multiple_number' => '',
'multiple_from' => '',
'multiple_reversed' => FALSE,
),
'exclude' => 0,
'id' => 'field_thumbnail_fid',
'table' => 'node_data_field_thumbnail',
'field' => 'field_thumbnail_fid',
'override' => array(
'button' => 'Use default',
),
'relationship' => 'none',
),
'title' => array(
'label' => '',
'alter' => array(
'alter_text' => 1,
'text' => '[field_movie_nid] - [title] ',
'make_link' => 0,
'path' => '',
'alt' => '',
'prefix' => '',
'suffix' => '',
'help' => '',
'trim' => 0,
'max_length' => '',
'word_boundary' => 1,
'ellipsis' => 1,
'strip_tags' => 0,
'html' => 0,
),
'link_to_node' => 1,
'exclude' => 0,
'id' => 'title',
'table' => 'node',
'field' => 'title',
'relationship' => 'none',
'override' => array(
'button' => 'Use default',
),
),
));
$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',
'relationship' => 'none',
),
'type' => array(
'operator' => 'in',
'value' => array(
'movie_video' => 'movie_video',
),
'group' => '0',
'exposed' => FALSE,
'expose' => array(
'operator' => FALSE,
'label' => '',
),
'id' => 'type',
'table' => 'node',
'field' => 'type',
'override' => array(
'button' => 'Use default',
),
'relationship' => 'none',
),
'tid' => array(
'operator' => 'or',
'value' => array(
'3' => '3',
'2' => '2',
),
'group' => '0',
'exposed' => FALSE,
'expose' => array(
'operator' => FALSE,
'label' => '',
),
'type' => 'select',
'limit' => TRUE,
'vid' => '2',
'id' => 'tid',
'table' => 'term_node',
'field' => 'tid',
'hierarchy' => 0,
'override' => array(
'button' => 'Use default',
),
'relationship' => 'none',
'reduce_duplicates' => 0,
),
));
$handler->override_option('title', 'New Trailers and Clips');
$handler->override_option('use_ajax', TRUE);
$handler->override_option('items_per_page', 4);
$handler->override_option('use_pager', 'mini');
$handler->override_option('pager_element', 5);
$handler->override_option('style_plugin', 'grid');
$handler->override_option('style_options', array(
'grouping' => '',
'columns' => '4',
'alignment' => 'horizontal',
));
$handler->override_option('row_options', array(
'inline' => array(
'title' => 'title',
'name' => 'name',
),
'separator' => '-',
));
$handler->override_option('block_description', '');
$handler->override_option('block_caching', -1);
#5
We are having a similar issue, where the pager just seems to break. It will display for a little while and then it just disappears. Generally this occurs on page 2 or 3. Changing the number to display per page will help temporarily but it will disappear again a few mins later.
This has only recently started to happen.
We have ajax turned off but we have views caching turned on.
#6
Subscribing--
Just a standard view on the page-- Pager might function as expected, and then disappears for my authenticated users. (using a custom node access module) ..
While I'm having issues, I log in as User 1 and see the pager, log in as a "normal" user, and do not see the pager.
It may have to do with caching, since the behavior began only after turning caching on.
No Ajax.
I can make the pager come back by changing the pager settings, then re-saving the view.
(switching between full and mini pager, or changing the index) I've tried different (and sometimes large) index numbers, with the same behavior.
At this time, I can't find a pattern as to when it disappears.
#7
Can I help with more info?
#8
Subscribing.
I also have a problem with the pager not showing in some views. It seems to happen when there is a relationship set? I'm adding a relationship to be able to show content from a CCK content taxonomy field in a table view.
#9
I have posted this at other forums too.
For me, the pager is not showing up if I set the Row Style to "Node". If I keep it fields and add in fields, then the pager shows up. And it doesn't matter if I have multiple views on that page with pager enabled.
F1 F1 F1 !!
#10
subscribe