Merge 13e127c082
into 3b3742a1bc
This commit is contained in:
commit
ce40e87ae2
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue