1016

Adding a page link field

976

Editing a page link field

{
  "name": "page_link_field",
  "label": "Page Link Field",
  "class": "page_link",
  "value": "http://docs.demo.rooftopcms.io/2016/08/17/hello-world/",
  "relationship": {
    "type": "post",
    "class": "all"
  }
}

🚧

Response value

There is a known issue 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.

See more information on this field.