InputfieldRepeater class

Repeats fields from another template. Provides the input for FieldtypeRepeater.

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

Show class?             Show args?        

Common

NameReturnSummary 
InputfieldRepeater::accordionMode bool int 
InputfieldRepeater::copyPasteCookieName()
stringGet the copy/paste cookie name 
InputfieldRepeater::familyFriendly bool int 
InputfieldRepeater::familyToggle bool int 
InputfieldRepeater::getConfigInputfields()
InputfieldWrapper@return InputfieldWrapper
InputfieldRepeater::getWrappers()
array InputfieldWrapperGet the repeater wrappers (InputfieldWrappers) indexed by repeater page ID 
InputfieldRepeater::isEmpty()
boolReturns whether any values are present 
InputfieldRepeater::loudControls bool int Always show controls regardless of hover? 
InputfieldRepeater::noScroll bool int Do not scroll to newly added items? 
InputfieldRepeater::numPublished()
intReturn quantity of published items 
InputfieldRepeater::numRequiredEmpty()
intGet number of required but empty Inputfields (across all repeater items) 
InputfieldRepeater::processInput(WireInputData $input)
$thisProcess the input from a submitted repeaters field
InputfieldRepeater::render()
stringRender the repeater items
InputfieldRepeater::renderAjaxNewItem()
stringRender a new item for ajax after 'add new' link clicked 
InputfieldRepeater::renderReady()
boolCalled before render() or renderValue() method by InputfieldWrapper, before Inputfield-specific CSS/JS files added 
InputfieldRepeater::renderRepeaterLabel(string $label, int $cnt, Page $page)
stringRender the repeater label
InputfieldRepeater::renderValue()
stringRender value (no inputs)
InputfieldRepeater::repeaterDepth int 
InputfieldRepeater::repeaterMaxItems int 
InputfieldRepeater::repeaterMinItems int 
InputfieldRepeater::set(string $key, mixed $value)
Inputfield InputfieldRepeaterOverride the default set() to capture the required $page variable that the repeaters field lives on. 
InputfieldRepeater::setAttribute($key, $value)
InputfieldRepeater InputfieldSet attribute 
InputfieldRepeater::singleMode bool int 

Additional methods and properties

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

API reference based on ProcessWire core version 3.0.236

Latest news

  • ProcessWire Weekly #522
    In the 522nd issue of ProcessWire Weekly we'll check out the latest core updates, introduce a new module called File Mover, and more. Read on!
    Weekly.pw / 11 May 2024
  • ProFields Table Field with Actions support
    This week we have some updates for the ProFields table field (FieldtypeTable). These updates are primarily focused on adding new tools for the editor to facilitate input and management of content in a table field.
    Blog / 12 April 2024
  • Subscribe to weekly ProcessWire news

“I am currently managing a ProcessWire site with 2 million+ pages. It’s admirably fast, and much, much faster than any other CMS we tested.” —Nickie, Web developer