> For the complete documentation index, see [llms.txt](https://docs.realmacsoftware.com/elements-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.realmacsoftware.com/elements-docs/cms/cms/components/collection-pagination.md).

# Collection Pagination

Display page numbers to navigate through multiple pages inside of Collections.

The Collection Pagination component is used to display page numbers that allow visitors to navigate through multiple pages of items within a CMS Collection. It automatically connects to the parent Collection and updates dynamically as content is added or removed.

**The Collection Pagination and** [**Load More**](/elements-docs/cms/cms/components/load-more.md) **components cannot be used together.** They both control how items are fetched and displayed within a Collection, so enabling both at the same time will cause conflicts. Choose Pagination if you want clear page-based navigation, or Load More if you prefer a progressive, infinite-style experience.

<figure><img src="https://1253728315-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTf3DR4s6R7zTFZDxsRx4%2Fuploads%2FWA5jK8rkUxnk5OWVAL5Q%2FCleanShot%202025-11-01%20at%204%E2%80%AF.55.17%402x.png?alt=media&amp;token=c26c1026-4681-4762-a125-d63554f1dcb0" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
**Important:** The Pagination component must be placed inside a Collection component to function. It’s recommended to position it at the bottom of the Collection layout in the "After" area, below the repeating items.
{% endhint %}

{% columns %}
{% column %}

#### Collection Pagination

**Settings**\
These controls let you adjust the appearance and behaviour of the pagination.

* **Page Range**

  Defines how many page numbers are visible at once. For example, setting this to 2 will display two page numbers before and after the current page.
* **Show First/Last**

  Toggles whether to display quick links to the first and last pages of the Collection.

You can customise the look of the pagination to match your site’s design.

* **State**

  Style the Default and Hover states separately to give visual feedback as users interact with the pagination links.
* **Background / Text**

  Adjust colours for the pagination buttons and text to match your theme.
* **Spacing**

  Fine-tune the Gap between page numbers and add Padding inside each button for balance and clarity.
* **Text**

  Choose a Font and Size to match the rest of your sites typography.
* **Borders**

  Adjust the Style, Radius, and Width to create rounded, outlined, or minimal pagination buttons.
  {% endcolumn %}

{% column %}

<figure><img src="https://1253728315-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTf3DR4s6R7zTFZDxsRx4%2Fuploads%2FrrijsSbsOv3RwWkvnACO%2FCleanShot%202025-11-01%20at%204%E2%80%AF.50.52%402x.png?alt=media&amp;token=7c542d58-69dd-4b90-be02-f3d6334f10f0" alt=""><figcaption></figcaption></figure>
{% endcolumn %}
{% endcolumns %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.realmacsoftware.com/elements-docs/cms/cms/components/collection-pagination.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
