---
title: 'Liquid objects: part'
description: A part in the navigation for pagination.
api_name: liquid
source_url:
html: 'https://shopify.dev/docs/api/liquid/objects/part'
md: 'https://shopify.dev/docs/api/liquid/objects/part.md'
---
# part
A part in the navigation for pagination.
## Properties
* * is\_link
[boolean](https://shopify.dev/docs/api/liquid/basics#boolean)
* Returns `true` if the part is a link. Returns `false` if not.
* title
[string](https://shopify.dev/docs/api/liquid/basics#string)
* The page number associated with the part.
* url
[string](https://shopify.dev/docs/api/liquid/basics#string)
* The URL of the part.
It consists of the current page URL path with the pagination parameter for the current part appended.
```json
{
"is_link": true,
"title": "2",
"url": "/collections/all?page=2"
}
```
##### Example
```
{
"is_link": true,
"title": "2",
"url": "/collections/all?page=2"
}
```
### Create pagination navigation with `part`
You can create a pagination navigation by iterating over each `part` of a [`paginate` object](https://shopify.dev/docs/api/liquid/objects/paginate).
```liquid
{% paginate collection.products by 5 -%}
{% for part in paginate.parts -%}
{% if part.is_link -%}
{{ part.title | link_to: part.url}}
{%- else -%}
{{ part.title }}
{% endif %}
{%- endfor %}
{%- endpaginate %}
```
##### Code
```
{% paginate collection.products by 5 -%}
{% for part in paginate.parts -%}
{% if part.is_link -%}
{{ part.title | link_to: part.url}}
{%- else -%}
{{ part.title }}
{% endif %}
{%- endfor %}
{%- endpaginate %}
```
##### Data
```
{
"collection": {
"products_count": 19
}
}
```
## Output
```html
1
2
3
4
```