Permalink
Browse files

API Implement sitemap.xml partitioning (Fixes #9)

Misc upgrade of module code so that site map.xml provides a index site map file based on the standards. Moved configuration vars to the Config API.

Considering how large a change this is, I've branched a 1.0 release off in github.
  • Loading branch information...
1 parent 90f3c82 commit 8bbc14ee235134efd2eb525f9840566abfbadf7f @wilr committed Jan 15, 2013
View
@@ -0,0 +1 @@
+.DS_Store
View
@@ -2,7 +2,7 @@
// add the extension to pages
if (class_exists('SiteTree')) {
- Object::add_extension('SiteTree', 'GoogleSitemapSiteTreeDecorator');
+ Object::add_extension('SiteTree', 'GoogleSitemapSiteTreeExtension');
}
// if you need to add this to DataObjects include the following in
@@ -0,0 +1,8 @@
+---
+Name: googlesitemaps
+---
+GoogleSitemap:
+ enabled: true
+ objects_per_sitemap: 1000
+ google_notification_enabled: false
+ use_show_in_search: true
View
@@ -3,4 +3,4 @@ Name: googlesitemaproutes
---
Director:
rules:
- 'sitemap.xml': 'GoogleSitemap'
+ 'sitemap.xml': 'GoogleSitemapController'
Oops, something went wrong.

0 comments on commit 8bbc14e

Please sign in to comment.