silverstripe-googlesitemaps/_config.php
rlehmann 9c0d50e726 FEATURE: added ability to add google sitemap indexes for dataobjects. Added documentation and.
APICHANGE: moved GoogleSiteMapDecorator to GoogleSitemapSiteTreeDecorator to use the original for a hook for extending on googlesitemaps on dataobjects only.
2011-06-11 14:17:05 +12:00

15 lines
374 B
PHP

<?php
// adds a rule to make www.site.com/sitemap.xml work
Director::addRules(10, array(
'sitemap.xml' => 'GoogleSitemap',
));
// add the extension to pages
Object::add_extension('SiteTree', 'GoogleSitemapSiteTreeDecorator');
// if you need to add this to DataObjects include the following in
// your own _config:
// GoogleSiteMap::register_dataobject('MyDataObject');