openstackweb/googlesitemaps/_config.php
2014-10-31 16:21:41 -03:00

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');