PageField::setTemplates()

Set multiple templates to use for this page field

If using single template, or if templates are specified in a selector, avoid using this method. To get current value use $field->template_ids

Available since version 3.0.258.

Usage

$self = $pageField->setTemplates(array $templates);

Arguments

NameType(s)Description
$templatesarray

Template instances, ids, or names

Return value

self


PageField methods and properties

API reference based on ProcessWire core version 3.0.261