StefGuev

Another thing about this module, can we add custom route easely? I have found GoogleSitemap class function get_sitemaps(). Extending the class and do a custom parent::get_sitemaps can do it?

StefGuev

i'm always using that one https://github.com/wilr/silverstripe-googlesitemaps

Show 1 attachment(s)
GitHub  
wilr/silverstripe-googlesitemaps

Google Sitemaps module for the SilverStripe CMS. Contribute to wilr/silverstripe-googlesitemaps development by creating an account on GitHub.

Hide attachment content
kinglozzer

It probably depends which sitemap module you’re using, there is no sitemap out of the box 😉

Joe

oh! cool - I didn’t realize it would influence the site map as well

StefGuev

@Joe I made a test and when I uncheck «Show in search», The page is removed from the sitemap.xml

StefGuev

Google tell me how to do it. Thanks Joe for explanations.

Joe

my SEO team says the same thing - regardless of what else you have going on with your site, it’s always good to have a robots.txt that defines exactly how you want crawlers to treat the pages on your site

Joe

I think “Show in Search” only influences if the page appears in an internal site search result, and does not impact robots.txt or SEO headers