ProcessPageList class

List pages in a hierarchical tree structure

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?        

Common

NameReturnSummary 
ajaxAction(string $action)
stringProcess an AJAX action and return JSON string
execute()
stringExecute the Page List
executeBookmarks()
stringExecute the Page Bookmarks (to be phased out)
executeId()
(nothing)
executeNavJSON()
string arrayOutput JSON list of navigation items for this module's bookmarks
executeOpen()
(nothing)
find(string $selectorString, Page $page)
PageArray@param string $selectorString
getAfterLoginUrl(Page $page)
stringURL to redirect to after non-authenticated user is logged-in, or false if module does not support 
getHidePageIDs()
array)
hidePages array Page IDs to hide from root page list. (3.0.202+) 
hidePagesNot array Values of 'debug', 'advanced', 'superuser' to not hide above pages when in that state. (3.0.202+) 
hoverActionDelay int Milliseconds delay between hover and showing of actions.  
hoverActionFade int Milliseconds to spend fading in or out actions.  
limit int Items to show per pagination.  
pageLabelField string Field name or field names (space separated) that should be used for page label. 
qtyType string What to show in children quantity label? 'children', 'total', 'children/total', 'total/children', or 'id' 
renderReady()
(nothing)Setup for render 
set(string $key, mixed $value)
Process ProcessPageListSet a value to this Page List (see WireData) 
setPageLabelField($name, $pageLabelField)
(nothing)Set the page label field 
setupBreadcrumbs()
(nothing)Setup the Breadcrumbs for the UI 
showRootPage bool Whether root page (like home) should be shown. 
speed int Animation speed (in ms) 
useBookmarks bool int Allow use of PageList bookmarks? 
useHoverActions bool int Whether or not to use hover mode for action links. 
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.244

“Yesterday I sent the client a short documentation for their ProcessWire-powered website. Today all features already used with no questions. #cmsdoneright—Marc Hinse, Web designer/developer