We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 37059
    • 368 Posts
    Hi all:

    Maybe I’m crazy, but I’ve double-checked everything and no success so far.

    I’m trying to generate a Google sitemap for my whole site, including large numbers of resources which live inside containers. On a page at the root (directly inside the Web context) with the template set to Empty, I have placed the standard GoogleSiteMap call:

    [[!GoogleSiteMap]]
    


    This returns a site map with just four pages, three of which are the 3 non-container pages at the same level (context root), and the fourth of which is the alphabetically-first container at the context root, which is hidden from menus. I even tried setting maxDepth=`3` just in case the default wasn’t working.

    I am at a loss to explain why this is happening, but I have a feeling it might have something to do with some of the resources being hidden from menus or inside containers that are hidden from menus.

    Or maybe it’s something else entirely grin

    I would appreciate any input from somebody who has any ideas.

    Thanks
      Jason
      • 25551 ☆ A M B ☆
      • 1,231 Posts
      Try moving the google sitemap stuff out of the category folders. I’m having this issue, see here

      http://modxcms.com/forums/index.php/topic,60682.msg349358.html#msg349358

      I moved the sitemap snippet and chunks out of the sitemap category and it worked.

      Cheers
        Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
        AugmentBLU - MODX Partner

        BLUcart - MODX Revolution E-Commerce & Shopping Cart
        • 37059
        • 368 Posts
        Quote from: rossco at Mar 03, 2011, 09:03 AM

        Try moving the google sitemap stuff out of the category folders. I’m having this issue, see here

        You’re absolutely right! shocked How crazy is that???

        Thanks very much for sharing this tip. smiley Hopefully this issue will get fixed, but until then, out of the category it goes!
          Jason
          • 37059
          • 368 Posts
          Oh, one thing I forgot to mention - I didn’t have to move anything but the snippet itself out of the category in order to get it working.
            Jason
            • 12352
            • 101 Posts
            Hi, I'm trying to override the changefreq and priority settings with 2 TV's priority and changefreq, but I don't get any results from the TV's in the ItemTpl chunk

            Call:
            [[!GoogleSiteMap? &itemTpl=`SitemapItem`]]


            Chunk SitemapItem:
            <url>
                <loc>[[+url]]</loc>
                <lastmod>[[+date]]</lastmod>
                <changefreq>[[+tv.changefreq]]</changefreq>
                <priority>[[+tv.priority]]</priority>
            </url>


            TV changefreq:


            TV priority:



            Result in sitemap.xml:
            <url>
            <loc>http://www.mydomain.com/en/</loc>
            <lastmod>2011-08-22</lastmod>
            <changefreq></changefreq>
            <priority></priority>

            </url>
            <url>
            <loc>http://www.mydomain.com/en/info.html</loc>
            <lastmod>2011-08-22</lastmod>
            <changefreq></changefreq>
            <priority></priority>

            </url>

            Can anyone help me with this, already used this approach in evo with Ditto, but it doesn't seem to work with this snippet.
              Don't believe anything you read on the net. Except this.
              • 40726
              • 22 Posts
              Sorry if I'm jumping in on the wrong thread but I can't find the basic info I'm after anywhere (I'm a complete newbie).

              I've added GoogleSiteMap to my Revo 2.2.4 site and I've got as far as creating the sitemap.xml page from an empty template and adding [[!GoogleSiteMap]] to it.

              I'm thinking I also need to create a couple of chunks to make it work but have no idea what should go in them. I would really appreciate it if someone could point me to a good, basic, step-by-step tutorial on how to work with this plugin. (please, explain it to me like I'm a 3 year old!)

              I'll also need to know how to include all parent and child pages and change the update frequency etc.

              Thanks
                • 18367
                • 834 Posts
                Phil and Steph,

                me too, but judging by the date of the comments in this thread and the lack of any responses, there doesn't seem to be any support or instructions for this extra.

                Try Sitemap Friend http://modx.com/extras/package/sitemapfriend

                Much easier to install and setup with no hassles. [ed. note: markg last edited this post 13 years, 7 months ago.]
                  Content Creator and Copywriter