Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Installing SilverStripe /

Getting SilverStripe up and running on your computer and on your web server.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Google Sitemaps - Where is the XML file?


Go to End


11 Posts   5238 Views

Avatar
davede

Community Member, 24 Posts

29 July 2011 at 3:56am

Hi all,

Another newbie question :).

Basically I just need a sitemap that is updated when a new page is added.

I'm having some trouble with the SS Sitemap functionality. I can see a folder labelled 'googlesitemaps' in the SS root directory. I'm not 100% sure whether this folder is installed by default (as another person installed SS). I checked the readme in the folder and it was a bit of a dud; no installation instructions, no usage overview, and the documentation link takes you to a page that is apparently no longer updated (here http://doc.silverstripe.org/old/modules:googlesitemaps).

I cannot actually find the sitemap.xml file anywhere in the directory that SS is installed in. Any ideas?

Can anyone point me to some easy to understand instructions or documentation?

Thanks,

Dave

Avatar
Nobrainer Web

Community Member, 138 Posts

29 July 2011 at 11:21am

Edited: 29/07/2011 11:22am

I think it should be at /sitemap.xml
So www.example.com/sitemap.xml should give you the XML sitemap file.

(The file does not actually exist on disk)

Avatar
Willr

Forum Moderator, 5523 Posts

29 July 2011 at 7:53pm

I cannot actually find the sitemap.xml file anywhere in the directory that SS is installed in. Any ideas?

It's not a file on disk, it is a director rule to a function (like most url's in SS) - https://github.com/silverstripe-labs/silverstripe-googlesitemaps/blob/master/_config.php#L5

Avatar
davede

Community Member, 24 Posts

29 July 2011 at 10:12pm

Thanks for the replies.

It's not a file on disk, it is a director rule to a function

I have no idea what that means ;) I'm very new to SS.

We have moved our old site (half WordPress half Static) over to SS. WordPress would auto-generate new entries in the sitemap.xml file in the root directory every time a new page is added.

The old sitemap.xml file still exists in the root.

What should we do?

Avatar
Willr

Forum Moderator, 5523 Posts

29 July 2011 at 10:30pm

What it means is you don't need the file. SS will generate it for you based off the database.

Avatar
Nobrainer Web

Community Member, 138 Posts

29 July 2011 at 10:36pm

The XML sitemap is for search engines like Google, so if you need to submit a sitemap to Google, just use the www.example.com/sitemap.xml.
If you are looking to create a sitemap that visitors should be able to look at and navigate, you would have to create a template for that.

Have a look at doc.silverstripe.org -> http://doc.silverstripe.org/sapphire/en/tutorials/1-building-a-basic-site
Under navigation.

Avatar
davede

Community Member, 24 Posts

29 July 2011 at 11:36pm

Edited: 29/07/2011 11:36pm

Thanks again for the replies.

I checked out the building a basic site tutorial - couldn't really find 'sitemap' written anywhere on the page.

Yes we'd like to submit a sitemap to Google.

In Webmaster Tools you can submit a sitemap and it will ask for the URL for the Sitemap.

If there is no file , or it is 'not needed' how can we submit the sitemap to Google?

Apologies for my very newbie questions here. I've been stuck with the SS stuff while the SS web dev is on holidays ;) Your help is very much appreciated :)

Avatar
Nobrainer Web

Community Member, 138 Posts

29 July 2011 at 11:41pm

If submitting to google in webmaster tools, then just click "Submit sitemap" and then type sitemap.xml in the field :o)
The adress is www.example.com/sitemap.xml -> the file is not on disc, but the XML is generated and sent on the fly from database upon request.

Go to Top