---
agentTools:
  projectIndex: https://rooftopcms.readme.io/llms.txt
---

# Page Link

[block:image]
{
  "images": [
    {
      "image": [
        "https://files.readme.io/39139f4-Screen_Shot_2016-08-19_at_13.51.15.png",
        "Screen Shot 2016-08-19 at 13.51.15.png",
        1016,
        800,
        "#f5f5f5"
      ],
      "caption": "Adding a page link field"
    }
  ]
}
[/block]

[block:image]
{
  "images": [
    {
      "image": [
        "https://files.readme.io/1349977-Screen_Shot_2016-08-19_at_14.43.43.png",
        "Screen Shot 2016-08-19 at 14.43.43.png",
        976,
        70,
        "#ededed"
      ],
      "caption": "Editing a page link field"
    }
  ]
}
[/block]

[block:code]
{
  "codes": [
    {
      "code": "{\n  \"name\": \"page_link_field\",\n  \"label\": \"Page Link Field\",\n  \"class\": \"page_link\",\n  \"value\": \"http://docs.demo.rooftopcms.io/2016/08/17/hello-world/\",\n  \"relationship\": {\n    \"type\": \"post\",\n    \"class\": \"all\"\n  }\n}",
      "language": "json"
    }
  ]
}
[/block]

[block:callout]
{
  "type": "warning",
  "title": "Response value",
  "body": "There is a [known issue](https://github.com/rooftopcms/rooftop-response-sanitiser/issues/3) where unlike with other fields types, the value here isn't normalised into a URL-agnostic format (slug/id). Until this is resolved, you can use a Post Object field to achieve the same result and specify **Page** as the **Post Type** filter in your Custom Field configuration."
}
[/block]

[See more](https://www.advancedcustomfields.com/resources/page-link) information on this field.