diff --git a/googlesitemaps/_config.php b/googlesitemaps/_config.php index 4d87420..b4ca4c5 100644 --- a/googlesitemaps/_config.php +++ b/googlesitemaps/_config.php @@ -1,9 +1,3 @@ 'GoogleSitemap', -)); - -// add the extension +// add the extension Object::add_extension('SiteTree', 'GoogleSitemapDecorator'); \ No newline at end of file diff --git a/googlesitemaps/_config/routes.yml b/googlesitemaps/_config/routes.yml new file mode 100644 index 0000000..e148e97 --- /dev/null +++ b/googlesitemaps/_config/routes.yml @@ -0,0 +1,7 @@ +--- +Name: googlesitemaproute +After: 'framework/routes#coreroutes' +--- +Director: + rules: + 'sitemap.xml': 'GoogleSitemap' \ No newline at end of file diff --git a/registration/_config.php b/registration/_config.php index 3d4fef6..b0360e8 100644 --- a/registration/_config.php +++ b/registration/_config.php @@ -13,8 +13,4 @@ **/ Object::add_extension('Member', 'MemberDecorator'); Object::add_extension('SecurityAdmin', 'SecurityAdminDecorator'); -Object::add_extension('SiteConfig', 'CustomSiteConfigRegistration'); - -Director::addRules(100, array( - 'userprofile' => 'AffiliationController' -)); \ No newline at end of file +Object::add_extension('SiteConfig', 'CustomSiteConfigRegistration'); diff --git a/registration/_config/routes.yml b/registration/_config/routes.yml new file mode 100644 index 0000000..b0d8ef8 --- /dev/null +++ b/registration/_config/routes.yml @@ -0,0 +1,7 @@ +--- +Name: registrationroutes +After: 'framework/routes#coreroutes' +--- +Director: + rules: + 'userprofile': 'AffiliationController' \ No newline at end of file