ProcessPageAdd class

Provides the UI for adding 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 ProcessPageAdd class also inherits all the methods and properties of: Process, WireData and Wire.

Show class?     Show args?       Only hookable?    

Common

NameReturnSummary 
ProcessPageAdd::clearSessionCaches()
NoneClear "add new" session caches 
ProcessPageAdd::execute()
stringMain execution, first screen of adding a Page
ProcessPageAdd::executeBookmarks()
stringExecute the Page Bookmarks
ProcessPageAdd::executeExists()
stringMethod to handle AJAX call to check of a given page name exists for a parent 
ProcessPageAdd::executeNavJSON()
array stringReturn list of addable templates and links to add them
ProcessPageAdd::executeTemplate()
stringAsk user to select template and parent
ProcessPageAdd::getPage()
Page nullGet the Page that is being edited 
ProcessPageAdd::getShortcutSortField()
InputfieldAsmSelect InputfieldHiddenGet Inputfield that lets you define shorcuts and sort order 
ProcessPageAdd::renderChooseTemplate()
stringRender an HTML definition list template selection for when no parent/template is known 
ProcessPageAdd::set(string $key, mixed $value)
Process ProcessPageAddSet property 
ProcessPageAdd::setEditor(WirePageEditor $editor)
NoneSet the WirePageEditor that is calling this Process 
ProcessPageAdd::setPredefinedParents(PageArray $parents)
NonePredefine the allowed parents, separately from family/auto-detect 
ProcessPageAdd::setPredefinedTemplates($templates)
NonePredefine the allowed templates, separately from family/auto-detect 
ProcessPageAdd::setupBreadcrumbs()
NoneSetup the UI breadcrumb trail 

Properties

NameReturnSummaryDefault
ProcessPageAdd::noAutoPublish bool int Disable automatic publishing? 
ProcessPageAdd::parent_id int 
ProcessPageAdd::template Template 

Additional methods and properties

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

API reference based on ProcessWire core version 3.0.251