Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jan A 63 posts 268 karma points
    Aug 12, 2024 @ 12:49
    Jan A
    0

    Only root node is generated in sitemap.xml

    I have enable the sitemap generation but only the root node is generated in the file. The seoXmlSiteMapHide is false on the child pages and all of them have templates.

    I have some pages that are not SEO enabled in the content tree, that are under a login page. Does that make the generation crash? Can't find why the pages are not generated?

  • Richard Soeteman 4046 posts 12899 karma points MVP 2x
    Aug 13, 2024 @ 06:26
    Richard Soeteman
    0

    Hi,

    Could be that children don't have a template? Otherwise what version are you on?

    Best,

    Richard

  • Jan A 63 posts 268 karma points
    Aug 13, 2024 @ 07:46
    Jan A
    0

    Hi and thanks for responding.

    As I wrote all children to the root have templates (if it is the regular umbraco template that you are referring to)

    There is another root node for site settings that don't have any template. That document type is SEO settings have exclude from sitemap as default value

    I'm running umbraco 13.1.1 and SEO Checker 13.2.0

    One thing I found that I have "messed up" at installation is that I've added Swedish as a language but forgot to delete English. So the pages have a swedish url and for en-US it say "This document is published but is not in the cache"

    But I don't have any sitemapindex.xml and it is really a single language site.

    The sitemap.xml is generated by SEO checker, or at least the Enable XmlSitemap setting is controlling if the sitemap.xml exist or not. Also the "XML sitemap priority" on the root is in the sitemap.xml file.

    Can't see any error in the umbraco log either.

  • Jan A 63 posts 268 karma points
    Sep 02, 2024 @ 09:28
    Jan A
    0

    Can't find a solution to this. Tried to delete the language that I thought interfered with the generation of the sitemap, but without success. Is there somewhere I can trace this or make a call to some functions in code to see what and how it returns?

    Some of the children have a document type without SEO fields. Does that matter? Most of them have it, but there are some pages that I don't have the SEO on.

  • Jan A 63 posts 268 karma points
    Sep 02, 2024 @ 13:11
    Jan A
    0

    Ok. I think I found the problem after testing some functions in your code.

    The problem was indeed the language. Since I had an extra language the homepage node had the culture of US-en and did not change for some reason when I changed the default site language to SE-sv I tested to delete the language in my local enviroment but did not get the result I wanted. But now it did somehow work. So what I did was to set the culture on the production site to SE-sv and now the sitemap it generated. I don't know if the sitemap was cached or why I did not find that it worked when I tried this last time.

    Anyway. The problem was a configuration issue that was resolved by setting the culture on the homepage node/site to SE-sv instead of inherit.

Please Sign in or register to post replies

Write your reply to:

Draft