I made a glossary clone, set the alpha to top and bottom and added a header. The header shows up twice at the top and once at the bottom, each having the edit/export menu above it.

$view = new view;
$view->name = 'adams_county_view';
$view->description = 'A list of all content, by letter.';
$view->tag = 'default';
$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(
  'title' => array(
    'label' => 'Title',
    'link_to_node' => 1,
    'exclude' => 0,
    'id' => 'title',
    'table' => 'node',
    'field' => 'title',
    'relationship' => 'none',
  ),
  'field_access_type_value' => array(
    'label' => 'Access type',
    'link_to_node' => 0,
    'label_type' => 'widget',
    'format' => 'default',
    'multiple' => array(
      'group' => TRUE,
      'multiple_number' => '',
      'multiple_from' => '',
      'multiple_reversed' => FALSE,
    ),
    'exclude' => 0,
    'id' => 'field_access_type_value',
    'table' => 'node_data_field_access_type',
    'field' => 'field_access_type_value',
    'override' => array(
      'button' => 'Override',
    ),
    'relationship' => 'none',
  ),
  'field_acres_value' => array(
    'label' => 'Acres',
    'link_to_node' => 0,
    'label_type' => 'widget',
    'format' => 'default',
    'multiple' => array(
      'group' => TRUE,
      'multiple_number' => '',
      'multiple_from' => '',
      'multiple_reversed' => FALSE,
    ),
    'exclude' => 0,
    'id' => 'field_acres_value',
    'table' => 'node_data_field_acres',
    'field' => 'field_acres_value',
    'override' => array(
      'button' => 'Override',
    ),
    'relationship' => 'none',
  ),
  'field_elevation_value' => array(
    'label' => 'Elevation',
    'link_to_node' => 0,
    'label_type' => 'widget',
    'format' => 'default',
    'multiple' => array(
      'group' => TRUE,
      'multiple_number' => '',
      'multiple_from' => '',
      'multiple_reversed' => FALSE,
    ),
    'exclude' => 0,
    'id' => 'field_elevation_value',
    'table' => 'node_data_field_elevation',
    'field' => 'field_elevation_value',
    'override' => array(
      'button' => 'Override',
    ),
    'relationship' => 'none',
  ),
  'field_location_value' => array(
    'label' => 'Location',
    'link_to_node' => 0,
    'label_type' => 'widget',
    'format' => 'default',
    'multiple' => array(
      'group' => TRUE,
      'multiple_number' => '',
      'multiple_from' => '',
      'multiple_reversed' => FALSE,
    ),
    'exclude' => 0,
    'id' => 'field_location_value',
    'table' => 'node_data_field_location',
    'field' => 'field_location_value',
    'override' => array(
      'button' => 'Override',
    ),
    'relationship' => 'none',
  ),
));
$handler->override_option('arguments', array(
  'title' => array(
    'default_action' => 'default',
    'style_plugin' => 'default_summary',
    'style_options' => array(),
    'wildcard' => 'all',
    'wildcard_substitution' => 'All',
    'title' => '',
    'default_argument_type' => 'fixed',
    'default_argument' => '',
    'validate_type' => 'none',
    'validate_fail' => 'not found',
    'glossary' => 1,
    'limit' => '1',
    'case' => 'upper',
    'path_case' => 'lower',
    'transform_dash' => 0,
    'id' => 'title',
    'table' => 'node',
    'field' => 'title',
    'relationship' => 'none',
    'default_argument_user' => 0,
    'default_argument_fixed' => 'all',
    'default_argument_php' => '',
    'validate_argument_vocabulary' => array(
      '2' => 0,
      '1' => 0,
    ),
    'validate_argument_type' => 'tid',
    'validate_argument_php' => '',
    'override' => array(
      'button' => 'Override',
    ),
    'default_options_div_prefix' => '',
    'validate_argument_node_type' => array(
      'poll' => 0,
      'sitenotes' => 0,
      'forum' => 0,
      'event' => 0,
      'fish_species' => 0,
      'lakes' => 0,
      'lake_facilities' => 0,
      'page' => 0,
      'special_fishing_rules' => 0,
      'story' => 0,
    ),
    'validate_argument_node_access' => 0,
    'validate_argument_nid_type' => 'nid',
  ),
));
$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' => 'Override',
    ),
    'relationship' => 'none',
  ),
  'type' => array(
    'operator' => 'in',
    'value' => array(
      'lakes' => 'lakes',
    ),
    'group' => '0',
    'exposed' => FALSE,
    'expose' => array(
      'operator' => FALSE,
      'label' => '',
    ),
    'id' => 'type',
    'table' => 'node',
    'field' => 'type',
    'override' => array(
      'button' => 'Override',
    ),
    'relationship' => 'none',
  ),
  'tid' => array(
    'operator' => 'not',
    'value' => array(
      '1' => '1',
      '2' => '2',
      '32' => '32',
      '26' => '26',
      '4' => '4',
      '10' => '10',
      '25' => '25',
      '14' => '14',
      '35' => '35',
      '33' => '33',
      '38' => '38',
      '39' => '39',
      '22' => '22',
      '18' => '18',
      '19' => '19',
      '7' => '7',
      '15' => '15',
      '5' => '5',
      '30' => '30',
      '36' => '36',
      '16' => '16',
      '31' => '31',
      '3' => '3',
      '21' => '21',
      '12' => '12',
      '28' => '28',
      '17' => '17',
      '11' => '11',
      '20' => '20',
      '8' => '8',
      '23' => '23',
      '24' => '24',
      '13' => '13',
      '37' => '37',
      '27' => '27',
      '9' => '9',
      '34' => '34',
      '29' => '29',
    ),
    'group' => '0',
    'exposed' => FALSE,
    'expose' => array(
      'operator' => FALSE,
      'label' => '',
    ),
    'type' => 'select',
    'vid' => '1',
    'id' => 'tid',
    'table' => 'term_node',
    'field' => 'tid',
    'hierarchy' => 0,
    'override' => array(
      'button' => 'Override',
    ),
    'relationship' => 'none',
    'reduce_duplicates' => 0,
  ),
));
$handler->override_option('access', array(
  'type' => 'role',
  'role' => array(
    '4' => 4,
  ),
));
$handler->override_option('title', 'Lakes in Ferry County, Washington');
$handler->override_option('header', '<p>Click on a lake name below to view more details.</p>
<div class="alpha-pager">
  <a class="alpha-page" href="/glossary-test/all">Show ALL</a>
</div>');
$handler->override_option('header_format', '3');
$handler->override_option('header_empty', 0);
$handler->override_option('use_ajax', '1');
$handler->override_option('items_per_page', 25);
$handler->override_option('use_pager', '1');
$handler->override_option('style_plugin', 'table');
$handler->override_option('style_options', array(
  'grouping' => '',
  'override' => 1,
  'sticky' => 0,
  'order' => 'asc',
  'columns' => array(
    'title' => 'title',
    'name' => 'name',
    'changed' => 'changed',
  ),
  'info' => array(
    'title' => array(
      'sortable' => 1,
      'separator' => '',
    ),
    'name' => array(
      'sortable' => 1,
      'separator' => '',
    ),
    'changed' => array(
      'sortable' => 1,
      'separator' => '',
    ),
  ),
  'default' => 'title',
));
$handler = $view->new_display('page', 'Page', 'page');
$handler->override_option('path', 'glossary-test');
$handler->override_option('menu', array(
  'type' => 'normal',
  'title' => 'Glossary Test',
  'weight' => '0',
  'name' => 'menu-admin-content',
));
$handler->override_option('tab_options', array(
  'type' => 'none',
  'title' => '',
  'weight' => 0,
));
$handler = $view->new_display('attachment', 'Attachment', 'attachment');
$handler->override_option('arguments', array(
  'title' => array(
    'default_action' => 'summary asc',
    'style_plugin' => 'unformatted_summary',
    'style_options' => array(
      'count' => 1,
      'override' => 0,
      'items_per_page' => '25',
      'inline' => 1,
      'separator' => ' | ',
    ),
    'wildcard' => 'all',
    'wildcard_substitution' => 'All',
    'title' => '',
    'default_argument_type' => 'fixed',
    'default_argument' => '',
    'validate_type' => 'none',
    'validate_fail' => 'not found',
    'glossary' => 1,
    'limit' => '1',
    'case' => 'upper',
    'path_case' => 'lower',
    'transform_dash' => 0,
    'id' => 'title',
    'table' => 'node',
    'field' => 'title',
    'relationship' => 'none',
    'default_argument_user' => 0,
    'default_argument_fixed' => 'a',
    'validate_argument_vocabulary' => array(),
    'validate_argument_php' => '',
  ),
));
$handler->override_option('attachment_position', 'both');
$handler->override_option('inherit_arguments', 0);
$handler->override_option('inherit_exposed_filters', FALSE);
$handler->override_option('displays', array(
  'default' => 'default',
  'page' => 'page',
));

Comments

pwieck’s picture

With Views 6.x-2.x-dev (2009-Jan-29) the problem is even worse. Made a glossary table from scratch with alpha set to both. Now there is two alpha pagers on the top and two headers above that. In the footer there is one alpha pager and the header.

pwieck’s picture

Still messed up 6.x-2.x-dev (2009-Jan-30) on drupal 6.9

merlinofchaos’s picture

Status: Active » Fixed

Your header is on the default view, which means all views (including the attachment) are getting it. You probably only want the header on your page view. I recommend you go to the page view, edit the header and click override. THen go to the default, edit the header and set it to blank.

Alternatively you could override it on the attachment and set it to blank there.

pwieck’s picture

Thank you, Thank you, Thank you, Thank you, Thank you, Thank you, Views 2 ROCKS!

Is there a way to put ALL in the alpha pager. I am using a Show ALL link in the header right now.

Thank you once again.

merlinofchaos’s picture

If you theme the summary style (look in views/theme to see which template is in use; theme: information unfortunately doesn't show summary style templates as it should) you can add your link to that, and link to the glossary with either no argument or the wildcard argument (which by default is 'all').

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.