Page

Renders a page selector and returns a Page object.

Renders a select input from which a creator can choose a page from their site pages.

Returns: A Page object.

Example

---
attributes:
  linked_page:
    type: page
    label: Linked page
    default: random
---
{% if linked_page %}
  <a href="{{ linked_page.url }}">{{ linked_page.name }}</a>
{% endif %}

Setting defaults

The default value only accepts random, which selects a random page from the creator's published pages.

On this page