This commit is contained in:
Nick Spiel 2014-05-14 04:39:43 +00:00
commit ce40e87ae2
3 changed files with 8 additions and 1 deletions

View File

@ -5,4 +5,5 @@ GoogleSitemap:
enabled: true
objects_per_sitemap: 1000
google_notification_enabled: false
use_show_in_search: true
use_show_in_search: true
set_change_frequency: false

View File

@ -78,6 +78,10 @@ class GoogleSitemapExtension extends DataExtension {
* @return SS_Datetime
*/
public function getChangeFrequency() {
if($freq = Config::inst()->get('GoogleSitemap', 'set_change_frequency')) {
return $freq;
}
if($freq = GoogleSitemap::get_frequency_for_class($this->owner->class)) {
return $freq;
}

View File

@ -39,6 +39,7 @@ config file `mysite/_config/googlesitemaps.yml` with the following outline:
objects_per_sitemap: 1000
google_notification_enabled: false
use_show_in_search: true
set_change_frequency: false
You can now alter any of those properties to set your needs. A popular option
is to turn on automatic pinging so that Google is notified of any updates to
@ -54,6 +55,7 @@ editing the `google_notification_enabled` option to true
objects_per_sitemap: 1000
google_notification_enabled: true
use_show_in_search: true
set_change_frequency: false
### Including DataObjects