Omeka Classic Logo
  • What’s new in Omeka
  • Tutorials
  • Reference
    • Global (Theming) Functions
    • Hooks
    • Filters
    • models
    • views/helpers
    • controllers
    • Packages
      • Acl
      • Application
      • Auth
      • Captcha
      • Controller
      • Db
      • File\Derivative
      • Filter
      • Form
      • Global Functions
        • Db-related functions
        • Locale-related functions
        • Log-related functions
        • Plugin-related functions
        • Search-related functions
        • Text-related functions
        • User-related functions
        • Utility-related functions
        • View-related functions
      • Http
      • Install
      • Job
      • Navigation
      • Output
      • Plugin
      • Record
      • Session
      • Storage
      • Test
      • Validate
      • View
    • libraries/Omeka
    • Omeka REST API
  • Helping With Documentation
  • Registering a new module or theme with omeka.org
Omeka Classic
  • Reference
  • Global (Theming) Functions
  • pagination_links — Get HTML for a pagination control for a browse page.
  • View page source

pagination_links — Get HTML for a pagination control for a browse page.

Navigation-related functions

Summary

pagination_links($options = array())

Get HTML for a pagination control for a browse page.

Parameters:
  • $options (array) – Configurable parameters for the pagination links. The following options are available: - ‘scrolling_style’ (string) See Zend_View_Helper_PaginationControl for more details. Default ‘Sliding’. - ‘partial_file’ (string) View script to use to render the pagination HTML. Default is ‘common/pagination_control.php’. - ‘page_range’ (integer) See Zend_Paginator::setPageRange() for details. Default is 5. - ‘total_results’ (integer) Total results to paginate through. Default is provided by the ‘total_results’ key of the ‘pagination’ array that is typically registered by the controller. - ‘page’ (integer) Current page of the result set. Default is the ‘page’ key of the ‘pagination’ array. - ‘per_page’ (integer) Number of results to display per page. Default is the ‘per_page’ key of the ‘pagination’ array.

Returns:

string HTML for the pagination links.

Usage

Examples

See Also

Previous Next

© Copyright 2012-2023, Omeka.

Built with Sphinx using a theme provided by Read the Docs.