mirror of
https://github.com/wilr/silverstripe-googlesitemaps.git
synced 2024-10-22 11:05:48 +02:00
8bbc14ee23
Misc upgrade of module code so that site map.xml provides a index site map file based on the standards. Moved configuration vars to the Config API. Considering how large a change this is, I've branched a 1.0 release off in github.
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');
|