LittleGiant\CatalogManager\Extensions\CatalogPageExtension
Class CatalogPageExtension
Synopsis
class CatalogPageExtension
extends DataExtension
{
- // constants
- const CONFIG_SETTINGS_WITH_DEFAULTS = ;
- // members
- private static array $parent_classes = ;
- private static bool $can_duplicate = true;
- private static bool $automatic_live_sort = true;
- private static bool $include_parent_subclasses = false;
- // methods
- public void updateSummaryFields()
- public string isPublishedNice()
- public void updateCMSFields()
- public array getParentClasses()
- public DataList getCatalogParents()
- public string|null getSortFieldName()
- public static null|string getClassSortFieldName()
- public bool canCreate()
- // Inherited methods from ExtensionDefinesDefaultConfig
- public static array get_extra_config()
Hierarchy
Extends
- SilverStripe\ORM\DataExtension
Uses
Constants
Name | Value |
---|---|
CONFIG_SETTINGS_WITH_DEFAULTS |
Members
private
- $automatic_live_sort — LittleGiant\CatalogManager\Extensions\bool
- $can_duplicate — LittleGiant\CatalogManager\Extensions\bool
- $include_parent_subclasses — LittleGiant\CatalogManager\Extensions\bool
- $parent_classes — array
Methods
public
- canCreate() — Prevent object creation if no parents exist.
- getCatalogParents() — Gets the parents of this page
- getClassSortFieldName() — Gets the field name for a class's sort column. As CatalogPageExtension is applied to subclasses of SiteTree, 'Sort' is default.
- getParentClasses() — Returns the parent classes defined from the config as an array
- getSortFieldName() — Gets the field name for the sort column. As we're on a subclass of SiteTree we assume 'Sort' as default.
- isPublishedNice() — Returns whether this page is published for the GridField
- updateCMSFields() — Adds functionality to CMS fields
- updateSummaryFields()
Inherited from LittleGiant\CatalogManager\Extensions\ExtensionDefinesDefaultConfig
public
- get_extra_config() — Generate extra config for a class, letting it override the concrete extension's config settings.