2010-06-22 23:49:25 +02:00
|
|
|
# Google Sitemaps Module
|
|
|
|
|
|
|
|
## Maintainer Contact
|
|
|
|
|
2011-04-26 11:17:49 +02:00
|
|
|
* Will Rossiter (Nickname: wrossiter, willr) <will@silverstripe.com>
|
2010-06-22 23:49:25 +02:00
|
|
|
|
|
|
|
## Requirements
|
|
|
|
|
|
|
|
* SilverStripe 2.4
|
|
|
|
|
|
|
|
## Documentation
|
|
|
|
|
2011-04-26 11:17:49 +02:00
|
|
|
SilverStripe provides support for the Google Sitemaps XML system, enabling
|
|
|
|
Google and other search engines to see all pages on your site. This helps
|
|
|
|
your SilverStripe website rank well in search engines, and to encourage the
|
|
|
|
information on your site to be discovered by Google quickly.
|
2010-06-22 23:49:25 +02:00
|
|
|
|
2011-04-26 11:17:49 +02:00
|
|
|
Therefore, all Silverstripe websites contain a special controller which can
|
|
|
|
be visited: http://yoursite.com/sitemap.xml
|
2010-06-22 23:49:25 +02:00
|
|
|
|
2011-04-26 11:17:49 +02:00
|
|
|
See http://en.wikipedia.org/wiki/Sitemaps for info on this format
|
2010-06-22 23:49:25 +02:00
|
|
|
|
2011-04-26 11:17:49 +02:00
|
|
|
In addition, whenever you publish a new or republish an existing page,
|
|
|
|
SilverStripe automatically informs Google of the change, encouraging a Google
|
|
|
|
to take notice. If you install the SilverStripe Google Analytics module, you
|
|
|
|
can see if Google has updated your page as a result.
|
|
|
|
|
|
|
|
By default, SilverStripe informs Google that the importance of a page depends
|
|
|
|
on its position of in the sitemap. "Top level" pages are most important, and
|
|
|
|
the deeper a page is nested, the less important it is. (For each level,
|
|
|
|
Importance drops from 1.0, to 0.9, to 0.8, and so on, until 0.1 is reached).
|
|
|
|
|
|
|
|
In the CMS, in the "Content/GoogleSitemap" tab, you can set the page importance
|
|
|
|
manually, including requesting to have the page excluded from the google sitemap.
|
|
|
|
|
|
|
|
### Setup automatic pinging
|
|
|
|
|
|
|
|
GoogleSitemap::enable_google_notificaton();
|
|
|
|
|
|
|
|
|