PHPackages                             hashtagerrors/craft-pagination - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. hashtagerrors/craft-pagination

Abandoned → [bhashkar007/craft-pagination](/?search=bhashkar007%2Fcraft-pagination)Craft-plugin[Utility &amp; Helpers](/categories/utility)

hashtagerrors/craft-pagination
==============================

Pagination plugin for Craft 3

1.0.2(6y ago)54.1k[4 issues](https://github.com/hashtagerrors/pagination/issues)MITPHP

Since Apr 28Pushed 6y ago2 watchersCompare

[ Source](https://github.com/hashtagerrors/pagination)[ Packagist](https://packagist.org/packages/hashtagerrors/craft-pagination)[ RSS](/packages/hashtagerrors-craft-pagination/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

Pagination plugin for Craft CMS
===============================

[](#pagination-plugin-for-craft-cms)

[![Screenshot](https://camo.githubusercontent.com/d9fe04c79d66591072b0b334fd714bae54c4d9e36837fac2a9b6796b8df25610/687474703a2f2f7777772e686173687461676572726f72732e636f6d2f6173736574732f75706c6f6164732f706167696e6174696f6e2e6a7067)](https://camo.githubusercontent.com/d9fe04c79d66591072b0b334fd714bae54c4d9e36837fac2a9b6796b8df25610/687474703a2f2f7777772e686173687461676572726f72732e636f6d2f6173736574732f75706c6f6164732f706167696e6174696f6e2e6a7067)

Requirements
------------

[](#requirements)

This plugin requires Craft CMS 3.0.0 or later.

Installation
------------

[](#installation)

To install the plugin, follow these instructions.

1. Open your terminal and go to your Craft project:

    ```
     cd /path/to/project

    ```
2. Then tell Composer to load the plugin:

    ```
     composer require hashtagerrors/craft-pagination

    ```
3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Pagination.

Pagination Overview
-------------------

[](#pagination-overview)

This plugin helps you render the following types of paginations :

- First &amp; Next Pagination
- Ellipsis Pagination
- Numeric Pagination

[![Screenshot](https://camo.githubusercontent.com/7ef018487a4d19fd86a66be22c9ad641f9a65d7de2e7178395c05ac36a98ffa0/687474703a2f2f7777772e686173687461676572726f72732e636f6d2f6173736574732f75706c6f6164732f617661696c61626c652d706167696e6174696f6e732e706e67)](https://camo.githubusercontent.com/7ef018487a4d19fd86a66be22c9ad641f9a65d7de2e7178395c05ac36a98ffa0/687474703a2f2f7777772e686173687461676572726f72732e636f6d2f6173736574732f75706c6f6164732f617661696c61626c652d706167696e6174696f6e732e706e67)

Using Pagination
----------------

[](#using-pagination)

To render paginations you need to use the following code:

```
{% paginate craft.entries.section('blog').limit(1) as pageInfo, pageEntries %}
{{ craft.pagination.render(pageInfo, type, options) }}

```

- **pageInfo** is the Craft's PaginateVariable given in `{% paginate %}` tag.
- **type** is the kind of pagination you want to render. Available values are :
    - firstNext
    - ellipsis
    - numeric
- **options** provides you a way to customize the html that is rendered through the plugin. Available options are:
    - ulClass : Class to add in ``
    - liClass : Class to add in ``
    - aClass : Class to add in ``
    - activeClass : Class to be added on current page``. Default **active**.
    - includeFirstLast : Set `true` if you need to show First and Last link in pagination. Default **false**. (Only available for Numeric Pagination)
    - firstText : The text for First Link. Default \*\*First \*\*.
    - lastText : The text for Last Link. Default \*\*last \*\*.
    - includePrevNext : Set `true` if you need to show Previous and Next link in pagination. (Only available for Numeric Pagination). Default **false**. (Only available for Numeric Pagination)
    - prevText : The text for Previous Link. Default **&lt; Prev**.
    - nextText : The text for Next Link. Default **Next &gt;**.
    - pageRange : Number of Previous and Next Links you want to show. Default **3**.
    - showPageInfo : Set `true` to show Page curent of total. Default **false**.

Templating Examples
-------------------

[](#templating-examples)

**First &amp; Next Pagination**

```
{{ craft.pagination.render(pageInfo, 'firstNext', {
	ulClass: 'pagination',
	liClass: 'page-item',
	aClass: 'page-link',
	showPageInfo : true,
	prevText: ' Prev',
	nextText: 'Next '
}) }}

```

**Ellipsis Pagination**

```
{{ craft.pagination.render(pageInfo, 'ellipsis', {
	ulClass: 'pagination',
	liClass: 'page-item',
	aClass: 'page-link',
	activeClass: 'active',
	includeFirstLast: true,
	includePrevNext: true,
	prevText: ' Prev',
	nextText: 'Next ',
	pageRange: 1
}) }}

```

**Numeric Pagination**

```
{{ craft.pagination.render(pageInfo, 'numeric', {
	ulClass: 'pagination',
	liClass: 'page-item',
	aClass: 'page-link',
	activeClass: 'active',
	includeFirstLast: true,
	includePrevNext: true,
	pageRange: 3
}) }}

```

Pagination Roadmap
------------------

[](#pagination-roadmap)

- Give users more options to make paginations much more dynamic.

New ideas are always welcome. You can post your idea or request [here](https://github.com/hashtagerrors/pagination/issues/new)

Attribution
-----------

[](#attribution)

Icon made by [Freepik](https://www.freepik.com) from [Flaticon](https://www.flaticon.com).

Brought to you by [Hashtag Errors](http://hashtagerrors.com)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance4

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~52 days

Total

3

Last Release

2467d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/fece97b8284efbeea601ef89f50f1267aaeb8f07c20557bd9ab24a784ca42475?d=identicon)[hashtagerrors](/maintainers/hashtagerrors)

---

Top Contributors

[![hashtagerrors](https://avatars.githubusercontent.com/u/33387101?v=4)](https://github.com/hashtagerrors "hashtagerrors (7 commits)")

---

Tags

paginationcmsCraftcraftcmscraft-plugincraft-pagination

### Embed Badge

![Health badge](/badges/hashtagerrors-craft-pagination/health.svg)

```
[![Health](https://phpackages.com/badges/hashtagerrors-craft-pagination/health.svg)](https://phpackages.com/packages/hashtagerrors-craft-pagination)
```

###  Alternatives

[verbb/navigation

Create navigation menus for your site.

90683.7k17](/packages/verbb-navigation)[verbb/formie

The most user-friendly forms plugin for Craft.

101372.9k40](/packages/verbb-formie)[verbb/comments

Add comments to your site.

13753.1k](/packages/verbb-comments)[verbb/tablemaker

Create customizable and user-defined table fields.

40168.8k1](/packages/verbb-tablemaker)[supercool/tablemaker

Create customizable and user-defined table fields.

40141.7k](/packages/supercool-tablemaker)[pennebaker/craft-architect

CraftCMS plugin to generate content models from JSON/YAML data.

72148.5k5](/packages/pennebaker-craft-architect)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
