API results for “template”
FieldtypeRepeaterMatrix::getMatrixTemplate($field) class.method
Return the repeater matrix template used by Field (same as getRepeaterTemplate except that it’s public)
FieldtypeRepeaterMatrix::saveConfigInputfields(Field $field, Template $template, Page $parent) class.method
Save field configuration
PagesType::__construct(ProcessWire $wire, $templates = [], $parents = []) class.method
Construct this PagesType manager for the given parent and template
PagesType::addTemplates($templates) class.method
Add one or more templates that this PagesType represents
PagesType::getTemplate() class.method
Get the template used by this type (or first template if there are multiple)
PagesType::getTemplates() class.method
Get the templates (plural) used by this type
FieldtypeRepeater::saveConfigInputfields(Field $field, Template $template, Page $parent) class.method
Helper to getConfigInputfields, handles adding and removing of repeater fields
InputfieldToggle::getConfigAllowContext(Field $field) module.method
Return a list of config property names allowed for fieldgroup/template context
InputfieldPage::getTemplateIDs(bool $getString = false) module.method
Return array or string of configured template IDs
InputfieldText::getConfigAllowContext(Field $field) module.method
Get array of field names allowed for field/template context
InputfieldSelector::getParentPages(Template $template) module.method
Get parent pages of pages using the given template
PageRender::render(Page $page, array $options) module.method
Return a string with the rendered output of this Page from its template file (other usages available as well)
ProcessPageEdit::processInputErrorAction(Page $page, $inputfield, string $name, $errorAction = null) module.method
Process required error actions as configured with page’s template
ProcessPageEdit::executeTemplate() module.method
Execute a template change for a page, building an info + confirmation form (handler for /template/ action)
ProcessPageEdit::executeSaveTemplate() module.method
Save a template change for a page (handler for /saveTemplate/ action)
ProcessPageEdit::isAllowedTemplate($id) module.method
Is the given template or template ID allowed here?
ProcessPageEdit::setPredefinedTemplates($templates) module.method
Set predefined allowed templates
ProcessPageType::executeTemplate() module.method
Execute the "change template" action delegated to ProcessPageEdit
ProcessPageType::executeSaveTemplate() module.method
Execute saving changes of the "change template" action delegated to ProcessPageEdit
ProcessPageAdd::executeNavJSON(array $options = []) module.method
Return list of addable templates and links to add them
ProcessPageAdd::executeTemplate() module.method
Ask user to select template and parent
ProcessPageAdd::renderChooseTemplate() module.method
Render an HTML definition list template selection for when no parent/template is known
ProcessPageAdd::getAllowedTemplates($parent = null) module.method
Returns an array of templates that are allowed to be used here
ProcessPageAdd::processQuickAdd(Page $parent, Template $template) module.method
Perform a 'quick add' of a page and redirect to edit the page
ProcessPageAdd::setPredefinedTemplates($templates) module.method
Predefine the allowed templates, separately from family/auto-detect