ProcessPageList class

Generates the ajax/js hierarchical page lists used throughout ProcessWire

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 ProcessPageList class also inherits all the methods and properties of: Process, WireData and Wire.

Show class?     Show args?       Only hookable?    

Common

NameReturnSummary 
ProcessPageList::ajaxAction(string $action)
stringProcess an AJAX action and return JSON string
ProcessPageList::execute()
stringExecute the Page List
ProcessPageList::executeBookmarks()
stringExecute the Page Bookmarks (to be phased out)
ProcessPageList::executeId()
None
ProcessPageList::executeNavJSON()
string arrayOutput JSON list of navigation items for this module's bookmarks
ProcessPageList::executeOpen()
None
ProcessPageList::find(string $selectorString, Page $page)
PageArray@param string $selectorString
ProcessPageList::getAfterLoginUrl(Page $page)
stringURL to redirect to after non-authenticated user is logged-in, or false if module does not support 
ProcessPageList::getPage()
Page nullGet parent page that current request is for 
ProcessPageList::getSelector(Page $page, array $options)
stringGet selector string to use in finding children
ProcessPageList::renderReady()
NoneSetup for render 
ProcessPageList::set(string $key, mixed $value)
Process ProcessPageListSet a value to this Page List (see WireData) 
ProcessPageList::setPageLabelField($name, $pageLabelField)
NoneSet the page label field 
ProcessPageList::setupBreadcrumbs()
NoneSetup the Breadcrumbs for the UI 

Properties

NameReturnSummaryDefault
ProcessPageList::hidePages array Page IDs to hide from root page list. 3.0.202+ 
ProcessPageList::hidePagesNot array Values of 'debug', 'advanced', 'superuser' to not hide above pages when in that state. 3.0.202+ 
ProcessPageList::hoverActionDelay int Milliseconds delay between hover and showing of actions.  
ProcessPageList::hoverActionFade int Milliseconds to spend fading in or out actions.  
ProcessPageList::limit int Items to show per pagination.  
ProcessPageList::pageLabelField string Field name or field names (space separated) that should be used for page label. 
ProcessPageList::qtyType string What to show in children quantity label? 'children', 'total', 'children/total', 'total/children', or 'id' 
ProcessPageList::showRootPage bool Whether root page (like home) should be shown. 
ProcessPageList::speed int Animation speed (in ms) 
ProcessPageList::useBookmarks bool int Allow use of PageList bookmarks? 
ProcessPageList::useHoverActions bool int Whether or not to use hover mode for action links. 
ProcessPageList::useTrash bool int Allow non-superusers to use Trash? 

Additional methods and properties

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

API reference based on ProcessWire core version 3.0.251