12 lines
286 B
PHP
12 lines
286 B
PHP
<?php
|
|
|
|
// add the extension to pages
|
|
if (class_exists('SiteTree')) {
|
|
Object::add_extension('SiteTree', 'GoogleSitemapSiteTreeExtension');
|
|
}
|
|
|
|
// if you need to add this to DataObjects include the following in
|
|
// your own _config:
|
|
|
|
// GoogleSiteMap::register_dataobject('MyDataObject');
|