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 PageTableField class also inherits all the methods and properties of: Field, WireData and Wire.

Show class?     Show args?       Only hookable?    

Properties

NameReturnSummary 
PageTableField::autoTrash int bool Deprecated, replaced by $trashOnDelete. 
PageTableField::columns string Column field names to display in the admin table view (one per line). 
PageTableField::nameFormat string Auto-format string for naming newly created item pages. 
PageTableField::noclose int If 1, keep the item editor open after saving rather than closing it. 
PageTableField::parent_id int Parent page ID where items are stored, or 0 to use the page being edited as parent. 
PageTableField::sortfields string Comma-separated field names to auto-sort items by (e.g. 'title' or '-date'). Leave blank for manual drag-and-drop sort. 
PageTableField::template_id int array Template ID (or array of IDs) that PageTable items must use. 
PageTableField::trashOnDelete int What to do with items when the owning page is permanently deleted: 0=nothing, 1=trash items, 2=delete items. 
PageTableField::unpubOnTrash int What to do with items when the owning page is trashed: 0=nothing, 1=unpublish items. 
PageTableField::unpubOnUnpub 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, PageTableField also inherits the methods and properties of these classes:

API reference based on ProcessWire core version 3.0.259