Jump to content

Module: XML Sitemap


Pete

Recommended Posts

  • 9 months later...

I'm using the Markup Sitemap XML module to automatically generate a sitemap.xml file, and a custom template to add markup for images and exclude specific page templates.

I discovered that when I view the sitemap.xml in Chrome, it looks as how it was intended based on my custom template. But in Safari, the custom template is ignored and the sitemap.xml file that is generated is the equivalent of not using the custom template at all. In fact, when I delete the custom template from the server, both Safari and Chrome display the same sitemap.xml content.

My sitemap.xml file validates, so I'm confident that there isn't anything in my code that is causing the issue. Unfortunately, my submitted sitemap through Google Search Console is picking up the incorrect Safari version and generating errors for pages that aren't publicly viewable on the site.

Here is the url to the sitemap file:
https://processinteractive.com/sitemap.xml

Has anyone else experienced this issue? I'm not sure if there is a fix unless it is in the module itself.

 

Link to comment
Share on other sites

What do you mean with "custom template to add markup for images..."? The output is just XML. Why would one browser display another XML? That makes no sense.

Do you mean "if logged in as superuser I see another XML as when not logged in"?

Also, maybe you should have posted in the module support threads instead:

https://processwire.com/talk/topic/799-module-xml-sitemap/

https://processwire.com/talk/topic/3846-how-do-i-create-a-sitemapxml/

 

Link to comment
Share on other sites

@Lance O., are you using Markup Sitemap XML, which is the earlier module from Pete, or Markup Sitemap, which is a newer one developed by Mike Rockett?

As Dragan said above, you should always post module-specific questions to the existing support thread for that module. Let us know which module you're talking about, and I can merge this thread to the correct module-specific support thread.

Thanks!

Link to comment
Share on other sites

@gragan Ah, you are correct, the custom template for the sitemap.xml file is only displayed when I'm logged into PW. Good catch!

Sitemaps can support images to help them appear in Google Image search results:
https://support.google.com/webmasters/answer/178636?hl=en
https://www.xml-sitemaps.com/images-sitemap.html

Yes, maybe I should have searched for the module support thread instead of clicking on the broken link directly from the module itself:
http://processwire.com/talk/index.php/topic,867.0.html

Link to comment
Share on other sites

@teppo I was using Pete's Markup Sitemap XML, but apparently it has some bugs. I've installed Mike's Markup Sitemap module and it seems to have resolved the issues I was experiencing. I wish it had support for the image license, but otherwise feels like a nice update.

Edit: Looks like it does support image license.

Edit 2: But unfortunately it doesn't look like the image license is working correctly. I've reported the issue in that module's support thread:

 

  • Like 1
Link to comment
Share on other sites

  • 4 weeks later...
  • 3 years later...

Hey y'all

I'm using this module on a website with a blog. The blog has an overview page with pagination (using the "Allow page numbers?" flag on the template).
How can I make the XML sitemap module create entries for every numbered page on the blog overview?

Thanks in advance for your help!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...