MarkupPageArray class

Adds convenience methods to all PageArray instances for markup generation

It adds PageArray::render() which generates a basic unordered list of linked pages. It can be called from any PageArray:

$items = $pages->find("id>0, limit=10"); // replace id>0 with your selector echo $items->render(); // renders a basic list of linked pages

It will also generate pagination if the selector had a limit placed on it (i.e. "limit=10"), and there are more pages left to render, and the page's template supports page numbers.

Also adds a PaginatedArray::renderPager() method, which is convenient when you are generating your own page list markup, but just want to use the automatic pagination generator.


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

Show class?     Show args?       Only hookable?    

Additional methods and properties

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

API reference based on ProcessWire core version 3.0.251