[smarcet]

* migration fixes for ss3.
This commit is contained in:
Sebastian Marcet 2014-11-20 15:53:09 -03:00
parent df46bd5a0d
commit 43703c7b5a
4 changed files with 16 additions and 12 deletions

View File

@ -1,9 +1,3 @@
<?php <?php
// add the extension
// 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'); Object::add_extension('SiteTree', 'GoogleSitemapDecorator');

View File

@ -0,0 +1,7 @@
---
Name: googlesitemaproute
After: 'framework/routes#coreroutes'
---
Director:
rules:
'sitemap.xml': 'GoogleSitemap'

View File

@ -13,8 +13,4 @@
**/ **/
Object::add_extension('Member', 'MemberDecorator'); Object::add_extension('Member', 'MemberDecorator');
Object::add_extension('SecurityAdmin', 'SecurityAdminDecorator'); Object::add_extension('SecurityAdmin', 'SecurityAdminDecorator');
Object::add_extension('SiteConfig', 'CustomSiteConfigRegistration'); Object::add_extension('SiteConfig', 'CustomSiteConfigRegistration');
Director::addRules(100, array(
'userprofile' => 'AffiliationController'
));

View File

@ -0,0 +1,7 @@
---
Name: registrationroutes
After: 'framework/routes#coreroutes'
---
Director:
rules:
'userprofile': 'AffiliationController'