$page


Built-in Fields Reference

  • $page->id

    The numbered ID of the current page

  • $page->name

    The name assigned to the page, as it appears in the URL

  • $page->title

    The page's title (headline) text

  • $page->path

    The page's URL path from the homepage (i.e. /about/staff/ryan/)

  • $page->url

    The page's URL path from the server's document root (may be the same as the $page->path)

  • $page->httpUrl

    Same as $page->url, except includes protocol (http or https) and hostname.

  • $page->parent

    The parent Page object or a NullPage if there is no parent.

  • $page->parentID

    The numbered ID of the parent page or 0 if none. $page->parent_id also works.

  • $page->parents

    Return this page's parent pages as Page Array.

  • $page->rootParent

    The parent page closest to the homepage (typically used for identifying a section)

  • $page->template

    The Template object this page is using

  • $page->fields

    All the Fields assigned to this page (via it's template, same as $page->template->fields). Returns a FieldsArray.

  • $page->numChildren

    The number of children (subpages) this page has.

  • $page->children

    All the children (subpages) of this page.* Returns a filtered PageArray. See also $page->children($selector).

  • $page->child

    The first child of this page. Returns a Page. See also $page->child($selector).

  • $page->siblings

    All the sibling pages of this page.† Returns a PageArray. See also $page->siblings($selector).

  • $page->next

    This page's next sibling page, or NullPage if it is the last sibling.† See also $page->next($pageArray).

  • $page->prev

    This page's previous sibling page, or NullPage if it is the first sibling.† See also $page->prev($pageArray).

  • $page->created

    Unix timestamp of when the page was created

  • $page->modified

    Unix timestamp of when the page was last modified

  • $page->createdUser

    The user that created this page. Returns a User or a NullUser.

  • $page->modifiedUser

    The user that last modified this page. Returns a User or a NullUser.