ProcessTemplate class

List and edit the templates that control page output

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

Show class?     Show args?       Only hookable?    

Common

NameReturnSummary 
ProcessTemplate::execute()
string

Execute the template list / default process

ProcessTemplate::executeAdd()
string

Execute the template add process

ProcessTemplate::executeEdit()
string

Execute the template edit process

ProcessTemplate::executeExport()
string

Execute export

ProcessTemplate::executeFieldgroup()
string

Confirm the fieldgroup change with another form that shows what will be deleted

ProcessTemplate::executeImport()
string

Execute import

ProcessTemplate::executeNavJSON()
array string

Output JSON list of navigation items for this (intended to for ajax use)

ProcessTemplate::executeRemoveFields()
string

Execute "remove fields" action

 
ProcessTemplate::executeRename()
string

Rename the template

ProcessTemplate::executeSaveFieldgroup()
None

Save the fieldgroup

ProcessTemplate::executeSaveProperty()
None

Save template/fieldgroup/field property (ajax)

ProcessTemplate::executeTags()
string

Handle the “Manage Tags” actions

ProcessTemplate::fieldAdded(Field $field, Template $template)
None

For hooks to listen to when a field is added to a template

ProcessTemplate::fieldRemoved(Field $field, Template $template)
None

For hooks to listen to when a field is removed from a template

ProcessTemplate::getAsmListAttrs(Field $field)
array

Get attributes for the asmSelect fields selection

 
ProcessTemplate::getListFilterForm()
InputfieldForm

@return InputfieldForm

ProcessTemplate::getListTable($templates)
MarkupAdminDataTable

Get templates list table

ProcessTemplate::getListTableRow(Template $template)
array

Get row for templates list table

ProcessTemplate::renderRemoveFields()
string

Render for "remove fields" action

 
ProcessTemplate::search(string $text)
array

Search for items containing $text and return an array representation of them

 

Additional methods and properties

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

API reference based on ProcessWire core version 3.0.253