PageTableField class
Page Table Field (for FieldtypePageTable)
Fieldtype settings
Inputfield settings
Click any linked item for full usage details and examples. Hookable methods are indicated with the icon. In addition to those shown below, the Page class also inherits all the methods and properties of: Field, WireData and Wire.
Properties
| Name | Return | Summary | |
|---|---|---|---|
| Page | int bool | Deprecated, replaced by $trashOnDelete. | |
| Page | string | Column field names to display in the admin table view (one per line). | |
| Page | string | Auto-format string for naming newly created item pages. | |
| Page | int | If 1, keep the item editor open after saving rather than closing it. | |
| Page | int | Parent page ID where items are stored, or 0 to use the page being edited as parent. | |
| Page | string | Comma-separated field names to auto-sort items by (e.g. 'title' or '-date'). Leave blank for manual drag-and-drop sort. | |
| Page | int array | Template ID (or array of IDs) that PageTable items must use. | |
| Page | int | What to do with items when the owning page is permanently deleted: 0=nothing, 1=trash items, 2=delete items. | |
| Page | int | What to do with items when the owning page is trashed: 0=nothing, 1=unpublish items. | |
| Page | int | What to do with items when the owning page is unpublished: 0=nothing, 1=unpublish items, 2=hide items. |
Additional methods and properties
In addition to the methods and properties above, Page
API reference based on ProcessWire core version 3.0.259