SilverCommerce\CatalogueFrontend\Extensions\CatalogueExtension
Synopsis
class CatalogueExtension
extends DataExtension
{
- // methods
- public array updateExportFields()
- public void updateRelativeLink()
- public bool isCurrent()
- public bool isSection()
- public string LinkingMode()
- public string LinkOrSection()
- public void updateCMSFields()
- public string getControllerName()
- public string generateURLSegment()
- public void onBeforeWrite()
- public bool alterCanIncludeInGoogleSitemap()
Hierarchy
Extends
- SilverStripe\ORM\DataExtension
Members
private
- $casting
- $db
Methods
public
- LinkOrSection() — Return "link" or "section" depending on if this is the current section.
- LinkingMode() — Return "link", "current" or section depending on if this page is the current page, or not on the current page but in the current section.
- alterCanIncludeInGoogleSitemap() — Hides disabled products from googlesitemaps Only called if googlesitemaps module is installed
- generateURLSegment() — Generate a URL segment based on the title provided.
- getControllerName() — Find the controller name by our convention of {$ModelClass}Controller
- isCurrent() — Returns true if this is the currently active page being used to handle this request.
- isSection() — Check if this page is in the currently active section (e.g. it is either current or one of its children is currently being viewed).
- onBeforeWrite()
- updateCMSFields()
- updateExportFields() — Add extra fields to export (including SEO )
- updateRelativeLink()