Results 1 to 15 of 15

Thread: GoogleSiteMap

  1. #1
    User
    Join Date
    06-19-09.
    Posts
    417

    Default GoogleSiteMap

    I have TL 2.7.2 installed.

    As soon as the extension is installed I get a fatal error:

    Code:
    Fatal error: Call to undefined method GoogleSitemap::getSearchablePages() in /var/www/mysite.com/system/modules/googlesitemap/GoogleSitemap.php on line 106
    I appreciate that it the GoogleSiteMap extension is not yet approved for 2.7.2, but is there a quick fix?

    Thanks,

    Gary.

  2. #2
    User
    Join Date
    06-19-09.
    Posts
    328

    Default Re: GoogleSiteMap

    Hi doublespark,
    the method has changed name between 2.7.1 and 2.7.2 release (as you can see here)

    you have to replace getSearchablePages with findSearchablePages.
    Consulenza Contao CMS https://www.intco.it

  3. #3
    Official Contao Team andreas.schempp's Avatar
    Join Date
    06-10-09.
    Posts
    63

    Default Re: GoogleSiteMap

    The latest release fixes this problem.
    terminal42 gmbh
    We are Contao Premium-Partner! For Isotope eCommerce support check out the Isotope Circle.

  4. #4
    User
    Join Date
    06-19-09.
    Posts
    417

    Default Re: GoogleSiteMap

    Thanks for the update Andreas

  5. #5
    User
    Join Date
    06-19-09.
    Posts
    417

    Default Re: GoogleSiteMap

    Andreas, do you (or anyone else) know how I could style sitemaps like this:

    orion-waste.co.uk/sitemap.xml

    I also like the credit link at the bottom of the sitemap that would be cool to.

    Lots of SEO companies are recommending having a text link to the xml sitemap on a home page, as this bring it into the users domain it would be good to style it nicely.

    Just don't know where to start, any pointers in the right direction would be greatly appreciated.

    Thanks, Gary.

  6. #6
    Official Contao Team andreas.schempp's Avatar
    Join Date
    06-10-09.
    Posts
    63

    Default Re: GoogleSiteMap

    What is formatting the xml-file is an xsl style sheet (on top of the xml). TYPOlight includes a link to the xml file in the head of your site.
    terminal42 gmbh
    We are Contao Premium-Partner! For Isotope eCommerce support check out the Isotope Circle.

  7. #7
    User
    Join Date
    06-19-09.
    Posts
    417

    Default Re: GoogleSiteMap

    Thanks Andreas,

    I think I see how it works.

    I have created a .xsl file bit now I nee to link to it from the xml file like this:

    <?xml-stylesheet type="text/xsl" href="sitemap.xsl"?>

    How can I add this code to the xml file?

    Thanks again.

    Gary.

  8. #8
    User
    Join Date
    06-19-09.
    Posts
    417

    Default Re: GoogleSiteMap

    Hi all,

    Just wondering if anyone knows how to add

    Code:
    <?xml-stylesheet type="text/xsl" href="sitemap.xsl"?>
    to the sitemap.xml file?

    Thanks,

    Gary.

  9. #9
    Official Contao Team andreas.schempp's Avatar
    Join Date
    06-10-09.
    Posts
    63

    Default Re: GoogleSiteMap

    Currently you cannot without modifying the code. I'll see if I can include that in the next release.
    terminal42 gmbh
    We are Contao Premium-Partner! For Isotope eCommerce support check out the Isotope Circle.

  10. #10
    User
    Join Date
    06-19-09.
    Posts
    417

    Default Re: GoogleSiteMap

    Thanks Andreas - It would be appreciated.

  11. #11
    Official Contao Team andreas.schempp's Avatar
    Join Date
    06-10-09.
    Posts
    63

    Default Re: GoogleSiteMap

    The new release of googlesitemap will defenetly cover this feature and it should come out in the next weeks. Just take a look when it is updated (I'll not nofiy here anymore) 8-)
    terminal42 gmbh
    We are Contao Premium-Partner! For Isotope eCommerce support check out the Isotope Circle.

  12. #12
    User
    Join Date
    06-19-09.
    Posts
    417

    Default Re: GoogleSiteMap

    Hi Andreas,

    I see that the extension has been updated, I was hoping that you may have included a way of adding a link to an xml stylesheet:

    Code:
    <?xml-stylesheet type="text/xsl" href="sitemap.xsl"?>
    If not can I amend a template to accomplish this?

    Thanks,

    Gary.

  13. #13
    Official Contao Team andreas.schempp's Avatar
    Join Date
    06-10-09.
    Posts
    63

    Default Re: GoogleSiteMap

    I did not add a new release of the extension. It possibly was a new build when I set it compatible to a new TYPOlight version.
    terminal42 gmbh
    We are Contao Premium-Partner! For Isotope eCommerce support check out the Isotope Circle.

  14. #14
    User
    Join Date
    06-19-09.
    Posts
    417

    Default Re: GoogleSiteMap

    No worries - Enjoy the rest of your weekend Andreas.

  15. #15
    New user
    Join Date
    09-19-09.
    Location
    Israel
    Posts
    1

    Default Re: GoogleSiteMap

    I have a problem, when the sitemap is generated it's made the root link like this:

    Code:
    http://www.mysite.com//
    How can I fix it?

    Thanks!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •