Jump to:

4938 Posts in 16827 Topics by 1490 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » Google Sitemaps - Where is the XML file?

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

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

Page: 1 2
Go to End
Author Topic: 2996 Views
  • davede
    Avatar
    Community Member
    24 Posts

    Google Sitemaps - Where is the XML file? Link to this post

    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

  • Nobrainer Web
    Avatar
    Community Member
    134 Posts

    Re: Google Sitemaps - Where is the XML file? Link to this post

    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)

  • Willr
    Avatar
    Forum Moderator
    5508 Posts

    Re: Google Sitemaps - Where is the XML file? Link to this post

    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

  • davede
    Avatar
    Community Member
    24 Posts

    Re: Google Sitemaps - Where is the XML file? Link to this post

    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?

  • Willr
    Avatar
    Forum Moderator
    5508 Posts

    Re: Google Sitemaps - Where is the XML file? Link to this post

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

  • Nobrainer Web
    Avatar
    Community Member
    134 Posts

    Re: Google Sitemaps - Where is the XML file? Link to this post

    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.

  • davede
    Avatar
    Community Member
    24 Posts

    Re: Google Sitemaps - Where is the XML file? Link to this post

    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

  • Nobrainer Web
    Avatar
    Community Member
    134 Posts

    Re: Google Sitemaps - Where is the XML file? Link to this post

    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.

    2996 Views
Page: 1 2
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.