9 lines
212 B
PHP
9 lines
212 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'); |