Skip to content

A drupal module to provide a paginated views based on first letters of the results

License

Notifications You must be signed in to change notification settings

ethanhann/alpha_pagination

Repository files navigation

Views Alphabetic Pagination Navigator

The Alpha Pagination for Views module enables you to add an alphabetical menu in the header or footer of a views display.

Alpha Pagination for Views was designed and written by Michael Bagnall: https://www.drupal.org/u/elusivemind.

This module exists thanks to the support of Highwire Press, Inc. and the Institute for the Arts and Humanities and UNC and was created as part of the Symposiac Conference Platform.

Dependencies

  • views

Install

Install the Alpha Pagination module.

  1. Copy the alpha_pagination folder to the modules folder in your installation.

  2. Download and enable dependencies (views and views_ui).

  3. Enable the Alpha Pagination for Views module using Administer -> Modules (/admin/build/modules).

Views Integration and Configuration

  1. Build a new view of either users, content (nodes), or comments.

  2. Add whatever field you want to use as the basis for the alphabetic grouping (e.g. title, body). You can optionally exclude this field from display if you don't want it to appear in the results shown on the page for some reason. You can only choose a field that is a textfield, textarea or a textarea with a summary.

  3. Add either a header or a footer to your view. Select the new item available in the menu of options for Global: Alpha Pagination.

  4. Configure how you want alpha_pagination to work and specify where it should appear: a) set the path to the results view page. b) select the field you want to use as the basis for the alphabetic grouping from the options presented in the select list (note: if the field you want to use does not appear, go back and add it to your view and then return to this configuration page to select the field).

c) add a context that is the same as the field you wish to use as the basis for alphabetic sorting. Be sure to enable Glossary mode and set the character limit to 1. The transform case option on the URL should be set to Upper Case. d) by default the alpha pagination will apply to all displays; if you only want the alpha pagination to appear on the current display, use the drop-down menu at the top of the administrative interface to change the setting from "All displays" to "This page (override)".

  1. An optional sample view is included and can be enabled via the alpha_pagination_example view. The sample relies on the 'article' default content type. You can create sample content using the devel module or rely on your own data.

About

A drupal module to provide a paginated views based on first letters of the results

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages