RoutesPages module

Pages routes

URLs the Pages module answers, their parameters and the variables each view receives.

View Public site URLs and what their templates receive.

Templates view

GET /listPages listPages

Retrieve a list of records and assign them to the template.

The template receives
VariableTypeDescription
$pages Collection<Page> Collection of Pages

Common variables such as $_url, $_request and $_menu are available too. Global template variables

GET /{fullSlug} showPage

Show a single record

Path parameters fullSlug matches .*

The template receives
VariableTypeDescription
$page Page Single Page record

Common variables such as $_url, $_request and $_menu are available too. Global template variables

GET / default

Show a single record

The template receives
VariableTypeDescription
$page Page Single Page record

Common variables such as $_url, $_request and $_menu are available too. Global template variables

Only GET routes list their variables.