RoutesPages module
Pages routes
URLs the Pages module answers, their parameters and the variables each view receives.
Templates view
GET
/listPages
listPages
Retrieve a list of records and assign them to the template.
| Variable | Type | Description |
|---|---|---|
$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 .*
| Variable | Type | Description |
|---|---|---|
$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
| Variable | Type | Description |
|---|---|---|
$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.