# page\_path\_unique

Source: https://zotonic.com/docs/2434/page_path_unique

URI: https://zotonic.com/id/2434

Language: en



A [validator](/id/doc_developerguide_forms_and_validation#guide-validators) to check whether a resource’s page path is unique:

```django
<input type="text" id="page_path" name="page_path" value="">
{% validate id="page_path" type={page_path_unique} %}
```

Optionally, pass an `id` parameter to exclude that particular id when testing for uniqueness. This is useful when you want to exclude the page paths of the resource currently being edited:

```django
<input type="text" id="page_path" name="page_path" value="">
{% validate id="page_path" type={page_path_unique id=id} %}
```

You can also pass a `failure_message`:

```django
<input type="text" id="page_path" name="page_path" value="">
{% validate id="page_path" type={page_path_unique id=id failure_message=_"Eek! Already used!"} %}
```

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/2434?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/2434?language=en>)
