Compare commits

...

2 Commits

Author SHA1 Message Date
Will Rossiter
59acd419ef
Merge pull request #194 from sunnysideup/patch-1 2024-02-22 07:24:41 +13:00
Sunny Side Up
aeeb960566
DOC: fixing yml annotation 2024-02-21 20:50:47 +13:00

View File

@ -30,32 +30,34 @@ manually, including requesting to have the page excluded from the sitemap.
Most module configuration is done via the Silverstripe CMS Config API. Create a Most module configuration is done via the Silverstripe CMS Config API. Create a
new config file `mysite/_config/googlesitemaps.yml` with the following outline: new config file `mysite/_config/googlesitemaps.yml` with the following outline:
```yml
--- ---
Name: customgooglesitemaps Name: customgooglesitemaps
After: googlesitemaps After: googlesitemaps
--- ---
Wilr\GoogleSitemaps\GoogleSitemap: Wilr\GoogleSitemaps\GoogleSitemap:
enabled: true enabled: true
objects_per_sitemap: 1000 objects_per_sitemap: 1000
google_notification_enabled: false google_notification_enabled: false
use_show_in_search: true use_show_in_search: true
```
You can now alter any of those properties to set your needs. A popular option 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 is to turn on automatic pinging so that Google is notified of any updates to
your page. You can set this in the file we created in the last paragraph by your page. You can set this in the file we created in the last paragraph by
editing the `google_notification_enabled` option to true editing the `google_notification_enabled` option to true
```yml
--- ---
Name: customgooglesitemaps Name: customgooglesitemaps
After: googlesitemaps After: googlesitemaps
--- ---
Wilr\GoogleSitemaps\GoogleSitemap: Wilr\GoogleSitemaps\GoogleSitemap:
enabled: true enabled: true
objects_per_sitemap: 1000 objects_per_sitemap: 1000
google_notification_enabled: true google_notification_enabled: true
use_show_in_search: true use_show_in_search: true
```
### Including DataObjects ### Including DataObjects