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 #518
    The 518th issue of ProcessWire Weekly brings in all the latest news from the ProcessWire community. Modules, sites, and more. Read on!
    Weekly.pw / 13 April 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

“To Drupal, or to ProcessWire? The million dollar choice. We decided to make an early switch to PW. And in retrospect, ProcessWire was probably the best decision we made. Thanks are due to ProcessWire and the amazing system and set of modules that are in place.” —Unni Krishnan, Founder of PigtailPundits