InputfieldPage class

Select one or more pages

Click any linked item for full usage details and examples. Hookable methods are indicated with the icon. In addition to those shown below, the InputfieldPage class also inherits all the methods and properties of: Inputfield, WireData and Wire.

Show class?             Show args?        

Common

NameReturnSummary 
InputfieldPage::addClass($class)
InputfieldPage InputfieldAdd a CSS class name (extends Inputfield::addClass) 
InputfieldPage::addable int bool 
InputfieldPage::allowUnpub int bool 
InputfieldPage::createFindPagesSelector()
string arrayCreate a page finding selector from all configured properties 
InputfieldPage::derefAsPage int 
InputfieldPage::findPagesCode(Page $page)
PageArray
Can also be used as property: InputfieldPage::findPagesCode
InputfieldPage::findPagesSelect string Same as findPageSelector, but configured interactively with InputfieldSelector . 
InputfieldPage::findPagesSelector string 
InputfieldPage::getConfigInputfields()
InputfieldWrapperGet field configuration Inputfields
InputfieldPage::getFieldSetups()
arrayGet recommended setups for FieldtypePage/InputfieldPage 
InputfieldPage::getInputfield()
Inputfield nullGet delegate Inputfield for page selection 
InputfieldPage::getInputfieldOptions()
arrayGet options available for page selection Inputfields 
InputfieldPage::getPageLabel(Page $page)
stringGet a label for the given page 
InputfieldPage::getSelectablePages(Page $page)
PageArray nullReturn PageArray of selectable pages for this input
InputfieldPage::getSetting($key)
mixedGets a setting (or API variable) from the Inputfield, while ignoring attributes. 
InputfieldPage::getTemplateIDs()
array stringReturn array or string of configured template IDs 
InputfieldPage::has($key)
boolDoes this Inputfield have the requested property or attribute? 
InputfieldPage::inputfield string Inputfield class used for input 
InputfieldPage::inputfieldClass string Public property alias of protected getInputfieldClass() method 
InputfieldPage::inputfieldClasses array 
InputfieldPage::isEmpty()
boolDoes this Inputfield have an empty value? 
InputfieldPage::isValidPage(Page $page, $field)
boolIs the given $page valid for the given $field? 
InputfieldPage::labelFieldFormat string Formatting string for $page->getMarkup() as alternative to $labelFieldName 
InputfieldPage::labelFieldName string Field name to use for label (note: this will be "." if $labelFieldFormat is in use). 
InputfieldPage::parent_id int 
InputfieldPage::processInput(WireInputData $input)
this InputfieldProcess input
InputfieldPage::processInputAddPages(WireInputData $input)
(nothing)
InputfieldPage::render()
stringRender
InputfieldPage::renderAddable()
string
InputfieldPage::renderReady()
boolCalled before render() 
InputfieldPage::renderValue()
stringRender non-editable value
InputfieldPage::setAttribute($key, $value)
InputfieldPage InputfieldSet an input attribute 
InputfieldPage::template_id int 
InputfieldPage::template_ids array 

For hooks

These methods are only useful for hooking and should not be called directly.

Additional methods and properties

In addition to the methods and properties above, InputfieldPage also inherits the methods and properties of these classes:

API reference based on ProcessWire core version 3.0.244

Latest news

  • ProcessWire Weekly #563
    In the 563rd issue of ProcessWire Weekly we will share the latest weekly update from Ryan, as well as the latest news and updates from the ProcessWire community. Read on!
    Weekly.pw / 22 February 2025
  • ProcessWire 3.0.244 new main/master version
    ProcessWire 3.0.244 is our newest main/master/stable version. It's been more than a year in the making and is packed with tons of new features, issue fixes, optimizations and more. This post covers all the details.
    Blog / 18 January 2025
  • Subscribe to weekly ProcessWire news

“We were really happy to build our new portfolio website on ProcessWire! We wanted something that gave us plenty of control on the back-end, without any bloat on the front end - just a nice, easy to access API for all our content that left us free to design and build however we liked.” —Castus, web design agency in Sheffield, UK