mirror of
https://github.com/wilr/silverstripe-googlesitemaps.git
synced 2024-10-22 11:05:48 +02:00
Update index.md
`GoogleSitemap::register()` should be `GoogleSitemap::register_dataobject()`
This commit is contained in:
parent
de283133fe
commit
7c3bde4d9f
@ -96,10 +96,10 @@ do that, include the following in your _config.php file.
|
|||||||
GoogleSitemap::register_dataobject('MyDataObject');
|
GoogleSitemap::register_dataobject('MyDataObject');
|
||||||
|
|
||||||
If you need to change the frequency of the indexing, you can pass the change
|
If you need to change the frequency of the indexing, you can pass the change
|
||||||
frequency (daily, weekly, monthly) as a second parameter to register(), So
|
frequency (daily, weekly, monthly) as a second parameter to register_dataobject(), So
|
||||||
instead of the previous code you would write:
|
instead of the previous code you would write:
|
||||||
|
|
||||||
GoogleSitemap::register('MyDataObject', 'daily');
|
GoogleSitemap::register_dataobject('MyDataObject', 'daily');
|
||||||
|
|
||||||
See the following blog post for more information:
|
See the following blog post for more information:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user