Version: current

# Class GoogleSitemapDecorator

Decorate the page object to provide google sitemaps with additionally options and configuration.

  Extension
  DataObjectDecorator
  SiteTreeDecorator
  GoogleSitemapDecorator

Package: googlesitemaps
Located at googlesitemaps/code/GoogleSitemapDecorator.php

## Methods summary

`public array` | # `extraStatics( )` Define extra database fields Define extra database fields Return a map where the keys are db, has_one, etc, and the values are additional fields/relations to be defined. #### Returns `array` Returns a map where the keys are db, has_one, etc, and the values are additional fields/relations to be defined. #### Overrides `DataObjectDecorator::extraStatics`
`public` | # `updateCMSFields( `FieldSet` & $fields )` This function is used to provide modifications to the form in the CMS by the decorator. By default, no changes are made. DataObject->getCMSFields(). This function is used to provide modifications to the form in the CMS by the decorator. By default, no changes are made. DataObject->getCMSFields(). Please consider using updateFormFields() to globally add formfields to the record. The method `GoogleSitemapDecorator::updateCMSFields()` should just be used to add or modify tabs, or fields which are specific to the CMS-context. Caution: Use FieldSet->addFieldToTab() to add fields. #### Parameters $fields FieldSet $fields FieldSet with a contained TabSet #### Overrides `DataObjectDecorator::updateCMSFields`
`public` | # `updateFieldLabels( mixed & $labels )` this function is used to provide modifications to the fields labels in CMS by the decorator By default, the fieldLabels() of its owner will merge more fields defined in the decorator's $extra_fields['field_labels'] this function is used to provide modifications to the fields labels in CMS by the decorator By default, the fieldLabels() of its owner will merge more fields defined in the decorator's $extra_fields['field_labels'] #### Overrides `DataObjectDecorator::updateFieldLabels`
`public` | # `onAfterPublish( )` #### Overrides `SiteTreeDecorator::onAfterPublish`
`public` | # `onAfterUnpublish( )` #### Overrides `SiteTreeDecorator::onAfterUnpublish`
`public` | # `getPriority( )` The default value of the priority field depends on the depth of the page in the site tree, so it must be calculated dynamically. The default value of the priority field depends on the depth of the page in the site tree, so it must be calculated dynamically.

### Methods inherited from SiteTreeDecorator

`canAddChildren()`, `canPublish()`, `onBeforePublish()`, `onBeforeUnpublish()`

### Methods inherited from DataObjectDecorator

`augmentDatabase()`, `augmentSQL()`, `augmentWrite()`, `can()`, `canCreate()`, `canDelete()`, `canEdit()`, `flushCache()`, `load_extra_statics()`, `onAfterDelete()`, `onAfterWrite()`, `onBeforeDelete()`, `onBeforeWrite()`, `populateDefaults()`, `requireDefaultRecords()`, `updateCMSActions()`, `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. -