Wilr\GoogleSitemaps\Extensions\GoogleSitemapExtension
Decorate the page object to provide google sitemaps with additional options and configuration.
Synopsis
class GoogleSitemapExtension
extends DataExtension
{
- // methods
- public boolean canIncludeInGoogleSitemap()
- public void onAfterPublish()
- public void onAfterUnpublish()
- public mixed getGooglePriority()
- public DBDatetime getChangeFrequency()
Hierarchy
Extends
- SilverStripe\ORM\DataExtension
Methods
public
- canIncludeInGoogleSitemap()
- 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()