ProcessPageLister class

Admin tool for finding and listing pages by any property.

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

Show class?             Show args?        

Common

NameReturnSummary 
addSessionBookmark(string $id, array $bookmark)
stringGiven a unique ID and an array of Lister settings (in $bookmark) return a URL to view those pages in Lister 
addURL string Add page base URL [$config->urls->admin . 'page/add/']  
allowBookmarks bool Whether or not to allow bookmarks 
allowIncludeAll bool allow include=all or check_access=0 mode when user is non-superuser? [false] 
allowSystem bool whether or not system templates/fields are allowed for selection. for system fields, it only refers to system custom fields excluding title. [false] 
blankLabel string Label when a field is blank (default=Blank) 
buildColumnsField()
(nothing)Build the columns asmSelect 
buildListerTableColActions(Page $p, $value)
string
cacheTotal bool cache the total, per selector, for increased performance? [true]  
checkBookmark()
null string falseCheck for a bookmark specified in GET variable $n 
columns array Array of columns (field names) to display in the lister  
configMode bool Configuration mode where some limits are removed (default=false) 
defaultLimit int Max items to show per pagination [25] 
defaultSelector string The default selector string that appears but MAY be removed or changed [template=, title%=] 
defaultSort string Default field to sort by [-modified] 
delimiters array Delimiters for multi-value column values, indexed by field name 
disallowColumns array columns that may not be displayed [array(pass,config)] 
editMode int Edit mode, see windowMode constants [self::windowModeNone]  
editOption int Edit option setting, used only by ListerPro 
editURL string Edit page base URL [$config->urls->admin . 'page/edit/']  
execute()
stringExecute the main Lister action, which is to render the Lister
executeActions()
stringListerPro
executeConfig()
stringListerPro
executeEditBookmark()
stringImplementation for ./edit-bookmark/ URL segment
executeNavJSON()
string arrayOutput JSON list of navigation items for this module's bookmarks
executeReset()
(nothing)Execute the reset action, which resets columns, filters, and anything else stored in the session
executeSave()
stringListerPro
executeUnknown()
stringCatch-all for bookmarks
executeViewport()
stringListerPro
findResults($selector)
PageArray
get(string $key)
mixed stringGet a Lister setting 
getBookmarksInstance()
ProcessPageListerBookmarksGet an instance of ProcessPageListerBookmarks 
getInputfieldSelector()
InputfieldSelectorGet the InputfieldSelector instance for this Lister 
getSelector()
stringGet the selector string to be used in finding results
getSelectorTemplates(string $selector)
arrayDetermine allowed templates from selector string 
identifyLanguage(string $name)
Language nullIdentify language for given field name / column name 
imageFirst int bool Show only first image? [false]  
imageHeight int Height for thumbnails, 0=proportional to width [100] 
imageStyle int 1=Detailed, 0=Image only (default=0) 
imageWidth int Width for thumbnails, 0=proportional to height [0] 
initSelector string The selector string that may not be changed. 
limitFields array Limit selectable filters/columns to only those present in this array [empty] 
nativeDateFormat string wireDate() format for created and modified dates 
parent null Page Parent page for all listed children (optional) 
prepareExternalAssets()
(nothing)Prepare the session values for external assets 
preview bool whether or not to show the selector string preview in InputfieldSelector [self::debug] 
removeBlankSelectors(string $selector)
stringRemove blank items like "template=, " from the selector string 
renderExternalAssets()
stringReturn a markup string with scripts that load external assets for an ajax request 
renderExtras()
stringRender additional tabs, setup so that descending classes can use as a template method 
renderResults()
string
resetLister()
(nothing)Reset all Lister settings so it is starting from a blank state 
responsiveTable bool Whether or not Lister table should be responsive rather than horiz scroll 
sessionClear()
(nothing)Clear all Lister session variables 
sessionGet(string $key)
string int array nullGet a Lister session variable 
sessionSet(string $key, $value)
(nothing)Set a Lister session variable 
set(string $key, mixed $value)
ProcessPageLister ProcessSet a Lister setting 
showIncludeWarnings bool Whether or not to show warnings about what pages were excluded to to max "include=" mode [true] 
statusLabels array Array of status labels of status_name => label 
systemLabels array Array of system page labels of field_name => label 
template null Template Template page for all listed children (optional) 
toggles array One or more of: collapseFilters, collapseColumns, noNewFilters, disableColumns, noButtons [empty] 
useColumnLabels bool whether to use labels for fields (versus names) in column selection and column labels [true]  
viewMode int View mode, see windowMode constants [self::windowModeNone] 

For hooks

These methods are only useful for hooking and should not be called directly.

Additional methods and properties

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

API reference based on ProcessWire core version 3.0.244

“ProcessWire is like a breath of fresh air. So powerful yet simple to build with and customise, and web editors love it too.” —Margaret Chatwin, Web developer