ProcessPageEdit class

Provides the UI for editing a page

For more details about how Process modules work, please see: wire/core/Process.php


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

Show class?     Show args?       Only hookable?    

Common

NameReturnSummary 
ProcessPageEdit::addTab(string $id, string $label)
NoneAdd a tab with HTML id attribute and label 
ProcessPageEdit::buildFormSortfield(string $sortfield, Process $caller)
InputfieldFieldsetBuild the sortfield configuration fieldset 
ProcessPageEdit::execute()
stringExecute the Page Edit process by building the form and checking if it was submitted
ProcessPageEdit::executeBookmarks()
stringBookmarks action
ProcessPageEdit::executeNavJSON()
stringnavJSON action
ProcessPageEdit::executeSaveTemplate()
NoneSave a template change for a page (handler for /saveTemplate/ action)
ProcessPageEdit::executeTemplate()
stringExecute a template change for a page, building an info + confirmation form (handler for /template/ action)
ProcessPageEdit::getAfterLoginUrl(Page $page)
stringURL to redirect to after non-authenticated user is logged-in, or false if module does not support 
ProcessPageEdit::getAllowedStatuses()
arrayGet allowed page statuses 
ProcessPageEdit::getEditUrl()
stringGet URL (or form action attribute) for editing this page 
ProcessPageEdit::getMasterPage()
null PageGet the 'master' page (if set) 
ProcessPageEdit::getPage()
PageReturn instance of the Page being edited (required by WirePageEditor interface) 
ProcessPageEdit::getRedirectUrl()
stringGet the current redirectUrl 
ProcessPageEdit::getTabs()
arrayReturns associative array of tab ID => tab Label
ProcessPageEdit::getViewUrl()
stringGet URL to view this page 
ProcessPageEdit::isAllowedTemplate($id)
boolIs the given template or template ID allowed here? 
ProcessPageEdit::isSubmit()
boolAre we processing a submitted page edit form in this request? 
ProcessPageEdit::processInputErrorAction(Page $page, $inputfield, string $name)
boolProcess required error actions as configured with page’s template 
ProcessPageEdit::removeTab(string $id)
NoneRemove the tab with the given id 
ProcessPageEdit::setEditor(WirePageEditor $editor)
NoneSet the primary editor, if not ProcessPageEdit 
ProcessPageEdit::setMasterPage(Page $page)
NoneSet the 'master' page 
ProcessPageEdit::setPage(Page $page)
NoneSet the page being edited 
ProcessPageEdit::setPredefinedParents(PageArray $parents)
NoneSet predefined allowed parents 
ProcessPageEdit::setPredefinedTemplates($templates)
NoneSet predefined allowed templates 
ProcessPageEdit::setRedirectUrl(string $url)
NoneCalled on save requests, sets the next redirect URL for the next request 
ProcessPageEdit::setUseSettings(bool $useSettings)
NoneSet whether or not 'settings' tab should show 
ProcessPageEdit::setupBreadcrumbs()
NoneSetup the breadcrumbs used in the UI 
ProcessPageEdit::setupHeadline()
NoneSet the headline used in the UI 
ProcessPageEdit::wired()
NoneWired to API 

Properties

NameReturnSummaryDefault
ProcessPageEdit::noticeIncomplete string 
ProcessPageEdit::noticeLocked string 
ProcessPageEdit::noticeNoAccess string 
ProcessPageEdit::noticeUnknown string 
ProcessPageEdit::useBookmarks bool 
ProcessPageEdit::viewAction string One of 'panel', 'modal', 'new', 'this' (see getViewActions method) 

Additional methods and properties

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

API reference based on ProcessWire core version 3.0.251