RoutesProducts module

Products routes

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

View Public site URLs and what their templates receive.

Templates view

GET /products/category/{slug} listCategoryProducts

Show a single record

Path parameters slug matches ^(?:[\w\-]*[a-zA-Z0-9\x7f-\xff]+)+[\w]*$

The template receives
VariableTypeDescription
$categoryDescription CategoryDescription Single CategoryDescription record

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

GET /products/{page} listProducts

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

Path parameters page matches \d+

The template receives
VariableTypeDescription
$products Collection<Product> Collection of Products

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

GET /products/descriptions/{page} listProductDescriptions

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

Path parameters page matches \d+

The template receives
VariableTypeDescription
$productDescriptions Collection<ProductDescription> Collection of ProductDescriptions

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

GET /products/descriptions/tags/{tags}/{page} listTagsProductDescriptions

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

Path parameters tags matches ^[\w\-]*[a-zA-Z0-9\x7f-\xff]+[\w\-]*([+&,|][\w\-]*[a-zA-Z0-9\x7f-\xff]+[\w\-]*)*$page matches \d+

The template receives
VariableTypeDescription
$productDescriptions Collection<ProductDescription> Collection of ProductDescriptions

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

GET /products/{fullSlug} showProduct

Show a single record

Path parameters fullSlug matches .+

The template receives
VariableTypeDescription
$productDescription ProductDescription Single ProductDescription record

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

Only GET routes list their variables.