Version: current

# Class ErrorPageSubsite

Plug-ins for additional functionality in your DataObjects.

Note: DataObjectDecorators are not actually Decorators in the GoF Design Patterns sense of the word. A better name for this class would be DataExtension. However, in the interests of backward compatibility we haven't renamed the class.

  Extension
  DataObjectDecorator
  ErrorPageSubsite

Package: sapphire\model
Located at subsites/code/ErrorPageSubsite.php

## Methods summary

`public` | # `alternateFilepathForErrorcode( mixed $statusCode, mixed $locale = null )` Alter file path to generated a static (static) error page file to handle error page template on different sub-sites Alter file path to generated a static (static) error page file to handle error page template on different sub-sites #### See Error::get_filepath_for_errorcode() FIXME since `Subsite::currentSubsite()` partly relies on Session, viewing other sub-site (including main site) between opening ErrorPage in the CMS and publish ErrorPage causes static error page to get generated incorrectly.

### Methods inherited from DataObjectDecorator

`augmentDatabase()`, `augmentSQL()`, `augmentWrite()`, `can()`, `canCreate()`, `canDelete()`, `canEdit()`, `extraStatics()`, `flushCache()`, `load_extra_statics()`, `onAfterDelete()`, `onAfterWrite()`, `onBeforeDelete()`, `onBeforeWrite()`, `populateDefaults()`, `requireDefaultRecords()`, `updateCMSActions()`, `updateCMSFields()`, `updateFieldLabels()`, `updateFrontEndFields()`, `updateSummaryFields()`

### Methods inherited from Extension

`__construct()`, `clearOwner()`, `getOwner()`, `get_classname_without_arguments()`, `setOwner()`

### Magic methods summary

## Properties summary

### Properties inherited from DataObjectDecorator

`$decoratable_statics`

### Properties inherited from Extension

`$allowed_actions`, `$class`, `$owner`, `$ownerBaseClass`

[Raise a SilverStripe Framework issue/bug](https://github.com/silverstripe/silverstripe-framework/issues/new)
- [Raise a SilverStripe CMS issue/bug](https://github.com/silverstripe/silverstripe-cms/issues/new)
- Please use the Silverstripe Forums to ask development related questions. -