\SitemapExtension
Decorate the page object to provide sitemaps
Based on github.com/silverstripe-labs/silverstripe-googlesitemaps
Synopsis
class SitemapExtension
extends DataExtension
{
- // methods
- public mixed getGooglePriority()
- public SS_Datetime getChangeFrequency()
- public void onAfterPublish()
- public void onAfterUnpublish()
Hierarchy
Extends
- DataExtension
Methods
public
- getChangeFrequency() — Returns a pages change frequency calculated by pages age and number of versions. Google expects always, hourly, daily, weekly, monthly, yearly or never as values.
- getGooglePriority() — The default value of the priority field depends on the depth of the page in the site tree, so it must be calculated dynamically.
- onAfterPublish()
- onAfterUnpublish()