SilverCommerce\CatalogueFrontend\Control\CatalogueController
Controller used to render pages in the catalogue (either categories or pages)
- Author: i-lateral (http://www.i-lateral.com)
Synopsis
class CatalogueController
extends ContentController
{
- // methods
- public array getFilter()
- public PaginatedList PaginatedProducts()
- public PaginatedList PaginatedAllProducts()
- public void __construct()
- protected void init()
- public Image ProductImage()
- public string MetaTags()
- public HTTPResponse handleRequest()
- public SSViewer getViewer()
- public SS_List CategoryMenu()
Hierarchy
Extends
- SilverStripe\CMS\Controllers\ContentController
Methods
protected
public
- __construct() — The Controller will take the URLSegment parameter from the URL and use that to look up a record.
- CategoryMenu() — Returns a fixed navigation menu of the given level.
- MetaTags() — Return the title, description, keywords and language metatags.
- PaginatedAllProducts() — Get a paginated list of all products at this level and below
- PaginatedProducts() — Get a paginated list of products contained in this category
- ProductImage() — The productimage action is used to determine the default image that will appear related to a product
- getFilter() — Find a filter from the URL that we can apply to the products list
- getViewer() — Overwrite default SSViewer call to get a custom template list
- handleRequest() — This acts the same as {@link Controller::handleRequest()}, but if an action cannot be found this will attempt to fall over to a child controller in order to provide functionality for nested URLs.