[smarcet]
* migration fixes for ss3.
This commit is contained in:
parent
df46bd5a0d
commit
43703c7b5a
@ -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');
|
7
googlesitemaps/_config/routes.yml
Normal file
7
googlesitemaps/_config/routes.yml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
Name: googlesitemaproute
|
||||||
|
After: 'framework/routes#coreroutes'
|
||||||
|
---
|
||||||
|
Director:
|
||||||
|
rules:
|
||||||
|
'sitemap.xml': 'GoogleSitemap'
|
@ -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'
|
|
||||||
));
|
|
||||||
|
7
registration/_config/routes.yml
Normal file
7
registration/_config/routes.yml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
Name: registrationroutes
|
||||||
|
After: 'framework/routes#coreroutes'
|
||||||
|
---
|
||||||
|
Director:
|
||||||
|
rules:
|
||||||
|
'userprofile': 'AffiliationController'
|
Loading…
Reference in New Issue
Block a user