PagesPathFinder class

Enables finding pages by path, optionally with URL segments, pagination numbers, language prefixes, etc.

This is built for use by the PagesRequest class and ProcessPageView module, but can also be useful from the public API. The most useful method is the get() method which returns a verbose array of information about the given path. Methods in this class should be acessed from $pages->pathFinder(), i.e.

$result = $pages->pathFinder()->get('/en/foo/bar/page3');

Note that PagesPathFinder does not perform any access control checks, so if using this class then validate access afterwards when appropriate.


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

Show class?             Show args?        

Additional methods and properties

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

API reference based on ProcessWire core version 3.0.236

Latest news

  • ProcessWire Weekly #532
    In the 532nd issue of ProcessWire Weekly we'll cover the latest core updates, check out a couple of brand-new third party modules, and more. Read on!
    Weekly.pw / 20 July 2024
  • Page List Custom Children module
    This simple module gives you the ability to customize the parent/child relationship as it appears in the admin page list, enabling child pages to appear under more than one parent.
    Blog / 28 June 2024
  • Subscribe to weekly ProcessWire news

“…building with ProcessWire was a breeze, I really love all the flexibility the system provides. I can’t imagine using any other CMS in the future.” —Thomas Aull