mirror of
https://github.com/wilr/silverstripe-googlesitemaps.git
synced 2024-10-22 11:05:48 +02:00
10 lines
215 B
PHP
10 lines
215 B
PHP
<?php
|
|
|
|
// adds a rule to make www.site.com/sitemap.xml work
|
|
Director::addRules(10, array(
|
|
'sitemap.xml' => 'GoogleSitemap',
|
|
));
|
|
|
|
// add the extension
|
|
Object::add_extension('SiteTree', 'GoogleSitemapDecorator');
|
|
?>
|