-
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.
-
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.
-
Re: GoogleSiteMap
The latest release fixes this problem.
-
Re: GoogleSiteMap
Thanks for the update Andreas
-
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.
-
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.
-
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.
-
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.
-
Re: GoogleSiteMap
Currently you cannot without modifying the code. I'll see if I can include that in the next release.
-
Re: GoogleSiteMap
Thanks Andreas - It would be appreciated.
-
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-)
-
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.
-
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.
-
Re: GoogleSiteMap
No worries - Enjoy the rest of your weekend Andreas.
-
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!