Jump to:

4938 Posts in 16689 Topics by 1490 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » Googlesitemaps

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

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

Page: 1
Go to End
Author Topic: 1664 Views
  • Robert1970
    Avatar
    Community Member
    4 Posts

    Googlesitemaps Link to this post

    Hi,

    Where is installation instruction for Googlesitemaps module? Does it work at all? What to do to force it to work?

    Please help!

    Robert

  • Joeri81
    Avatar
    Community Member
    4 Posts

    Re: Googlesitemaps Link to this post

    Assuming you use the latest version of SS:

    Download the latest build here:
    http://doc.silverstripe.com/doku.php?id=modules:googlesitemaps

    (FTP to your ss site): Overwrite all files in the googlesitemaps directory with the new ones you just download
    then browse to: http://yourwebsite/db/build

    then login to http://yourwebsite/admin

    the UI of google site maps ranking is there. Now you have the following problem: "sitemap.xml is not being generated"

    I don't know how to solve this, but maybe someone else can. Please let me know.

  • Fred C.
    Avatar
    Community Member
    18 Posts

    Re: Googlesitemaps Link to this post

    Call the following method in your mysite/_config.php:

    GoogleSitemap::enable();

  • Joeri81
    Avatar
    Community Member
    4 Posts

    Re: Googlesitemaps Link to this post

    Thank you for the quick reply:

    Here's how I changed the _config.php located in the mysite folder:

    <?php

    global $project;
    $project = 'mysite';

    global $databaseConfig;
    $databaseConfig = array(
       "type" => "MySQLDatabase",
       "server" => "localhost",
       "username" => "***",
       "password" => "**",
       "database" => "***",
    );

    // Sites running on the following servers will be
    // run in development mode. See
    // http://doc.silverstripe.com/doku.php?id=devmode
    // for a description of what dev mode does.
    Director::set_dev_servers(array(
       'localhost',
       '127.0.0.1',
    ));

    // This line set's the current theme. More themes can be
    // downloaded from http://www.silverstripe.com/themes/
    SSViewer::set_theme('highway');

    //enabling 3rd party software
    GoogleSitemap::enable();

    ?>

    Still no sitemap.xml . I have CHMOD the root folder to 777, flushed the site and logged in and clicked save on a page. Still no effect. Any ideas?

  • Fred C.
    Avatar
    Community Member
    18 Posts

    Re: Googlesitemaps Link to this post

    Unfortunately it Just Works on my installations—but then I'm using the version of the module that's bundled with SilverStripe 2.3.3.

  • secuaz
    Avatar
    Community Member
    21 Posts

    Re: Googlesitemaps Link to this post

    Hi all,

    I keep trying to make the google sitemap work. In the website I have installed a googlesite moudule for the pages of the site, and then installed a wordpress blog, which means I need to submit two sitemap.xml files.
    (Using ss3 and the master googlesitemap module)
    My questions are two:

    I am getting a 500 internal error saying: GoogleSitemapController::$allowed_actions must be public. I read on github that static configurables properties need to be private. Does it have to be public?????

    How do I submit separately the two sitemap.xml files? Do i need a separate googlesitemap module for the wordpress blog?

    Please help!!

  • Willr
    Avatar
    Forum Moderator
    5508 Posts

    Re: Googlesitemaps Link to this post

    You'll need to download the supported version for your module. Master supports 3.1, 1.1 supports 3.0 (https://github.com/silverstripe-labs/silverstripe-googlesitemaps/tree/1.1).

    1664 Views
Page: 1
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.