I created a view to act as gallery navigation for a group of 45 images on my site. The first page works correct as it displays 9 thumbnails and items per page is set to 9. Use pager is selected and 'full pager' has been chosen. If I set the number of items per page to 9, 18, 36, or 45, all images display correctly on the first page; however, no matter what, a second (third, fourth, or fith) page is not displayed.

You can see the view at http://www.futuresite.villacollectionsdesign.com/gallery and I am putting in the view's export code below:

$view = new view;
$view->name = 'Gallery';
$view->description = '';
$view->tag = '';
$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(
  'field_image_fid' => array(
    'label' => 'Image',
    'required' => 1,
    'delta' => -1,
    'id' => 'field_image_fid',
    'table' => 'node_data_field_image',
    'field' => 'field_image_fid',
    'relationship' => 'none',
  ),
));
$handler->override_option('fields', array(
  'field_image_fid' => 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,
      'strip_tags' => 0,
      'html' => 0,
    ),
    'empty' => '',
    'hide_empty' => 0,
    'empty_zero' => 0,
    'link_to_node' => 0,
    'label_type' => 'none',
    'format' => 'imagefield__lightbox2__Thumbnail__Lightbox',
    'multiple' => array(
      'group' => TRUE,
      'multiple_number' => '',
      'multiple_from' => '',
      'multiple_reversed' => FALSE,
    ),
    'exclude' => 0,
    'id' => 'field_image_fid',
    'table' => 'node_data_field_image',
    'field' => 'field_image_fid',
    'relationship' => 'none',
  ),
));
$handler->override_option('sorts', array(
  'created' => array(
    'order' => 'DESC',
    'granularity' => 'second',
    'id' => 'created',
    'table' => 'node',
    'field' => 'created',
    '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',
  ),
  'type' => array(
    'operator' => 'in',
    'value' => array(
      'image' => 'image',
    ),
    'group' => '0',
    'exposed' => FALSE,
    'expose' => array(
      'operator' => FALSE,
      'label' => '',
    ),
    'id' => 'type',
    'table' => 'node',
    'field' => 'type',
    'relationship' => 'none',
  ),
));
$handler->override_option('access', array(
  'type' => 'none',
));
$handler->override_option('cache', array(
  'type' => 'none',
));
$handler->override_option('items_per_page', 9);
$handler->override_option('use_pager', '1');
$handler->override_option('style_plugin', 'grid');
$handler->override_option('style_options', array(
  'grouping' => '',
  'columns' => '3',
  'alignment' => 'horizontal',
));
$handler = $view->new_display('page', 'Page', 'page_1');
$handler->override_option('path', 'gallery');
$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,
));

Comments

bstrange’s picture

OK, I'm stumped...tried turning ajax on/off, setting pager to mini (shows "1 of 5" but no links or arrows), you name it I've tried it... really stumped now :(

bstrange’s picture

Figured it out. Garland theme was modified to a black background. Pager numbering is black by default. (Boy do I feel stupid).

This will probably make me look even more stupid but how do I change the default menu settings so that they aren't overwritten with core updates as the settings that govern this are in (site)/modules/system/system-menus.css:

li a.active {
color:#FFFFFF;
}

(modified color from #000)

I tried adding a system folder to sites/all/modules and customizing the system-menus.css there but it had no effect.

I got it working customizing the system-menus.css in (site)/modules/system; however, I believe that will be overwritten the next time I update the core...

Edit to add: I also need to know this for where I modified (site)/modules/system/system.css

.pager-current {
  font-weight:bold;
}

to

.pager-current {
  font-size:1.6em;
  font-weight:bold;
}

TIA