/shop/productsoverview
A view of the shop module, defined in kernel/shop/module.php and run by kernel/shop/productsoverview.php.
Address
/shop/productsoverview/(product_class)/<ProductClass>/(offset)/<Offset>Unordered parameters, in any order as /(name)/value: (product_class) sets ProductClass, (offset) sets Offset.
Who may open it
The user needs this policy function:
A policy on shop/* (every function) also grants it; limitations of the policy (section, subtree, class ...) still apply where the view checks them.
Details
| Key | Value |
|---|---|
| Navigation part | ezshopnavigationpart |
| Single POST actions | ShowProductsButton: ShowProducts, SortButton: Sort |
| POST action parameters | ShowProducts (ProductClass: ProductClass), Sort (ProductClass: ProductClass, SortingField: SortingField, SortingOrder: SortingOrder) |
Example
A link in a template (ezurl adds the siteaccess and quotes the address); the parameter values are placeholders:
<a href='/shop/productsoverview'|ezurl>shop/productsoverview</a>
<a href=concat( '/shop/productsoverview/(product_class)/', 1 )|ezurl>shop/productsoverview</a>From PHP, the redirect a view gives after it has done its work:
return $Module->redirectTo( '/shop/productsoverview' );Related
Generated by ./console exp:help:examples from kernel/shop/module.php, kernel/shop/productsoverview.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.