We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28215
    • 4,149 Posts
    This is an auto-generated topic for GoogleSiteMap 1.2-pl by splittingred.

    Brief Description:

    Generates a Google SiteMap XML. (MODx Revolution only.)
    New in 1.2

    • Updated google schema to 0.9, fixed reference (again)

    New in 1.1

    • Added maxDepth, excludeResources properties
    • Refactored to work with overridable chunks for templates
    • Fixed URL generation bug where home URL was incorrectly generating
    • Updated copyright information
    • i18n of properties

    Please see the official documentation here:[url=http://docs.modxcms.com/display/ADDON/GoogleSiteMahttp://docs.modxcms.com/display/ADDON/GoogleSiteMap/[/url]
      shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
      • 16702 ☆ A M B ☆
      • 536 Posts
      Works perfect, thanks splittingred!
        palma non sine pulvere
        • 25551 ☆ A M B ☆
        • 1,231 Posts
        I just installed this package in rev and I don’t quite see how to get it working. I have created the 2 chunks required and I have this call in a document that is set to use XML as the content type.

        [[!GoogleSiteMap? &containerTpl=`containerTpl` &itemTpl=`itemTpl` &context=`web`]]

        I am trying to create a xml sitemap for all pages but this is only showing the page that the snippet is actually on. How do I get it to display all documents that are published rather than only the document it’s included on?

        Thanks!
          Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
          AugmentBLU - MODX Partner

          BLUcart - MODX Revolution E-Commerce & Shopping Cart
          • 25551 ☆ A M B ☆
          • 1,231 Posts
          Any help with this? I can’t seem to get it working.
            Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
            AugmentBLU - MODX Partner

            BLUcart - MODX Revolution E-Commerce & Shopping Cart
            • 25551 ☆ A M B ☆
            • 1,231 Posts
            I still have issues getting this working, I’m on a different site now using 2.0.7 traditional and the sitemap page is blank.

            [[!GoogleSiteMap? &containerTpl=`containerTpl` &itemTpl=`itemTpl` &context=`web`]]

            I have 4 documents that are published but that page is blank. The chunks are there and the snippet is installed.

            ******
            EDIT

            I just moved all the relevant chunks and snippet out of the category it was related to and the sitemap was generated. Why would this stop the snippets and chunks working? Is this a bug, an incorrect install or what? I did upload all MODX files again via FTP before doing this and it still was not working but removing them from the category made the snippet work.

            Also resources and containers created before the snippet was installed are not showing up in the sitemap. I just created a new container and a couple child documents and they showed up. All documents are using the web context and nothing is different between the resources other than the creation date. What should I do about that? Surely I don’t have to redo the documents?

            OK... the containers were not searchable. I didn’t realise that would stop the sitemap finding the documents!
              Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
              AugmentBLU - MODX Partner

              BLUcart - MODX Revolution E-Commerce & Shopping Cart
              • 5357
              • 30 Posts
              Is there any way to control both the priority and frequency, rather than it defaulting to when the resource was last updated?
                • 5357
                • 30 Posts
                For anyone interested, you can control/override the frequency and priority values by adding two TVs (one for each) and then calling these from within a new chunk. wink
                  • 33337
                  • 3,975 Posts
                  I am having a problem. If I call it as simple as [[!GoogleSitemap]], everything shows up, which means it is working. But I need to include selective templates/resources in the sitemap, thus I created this:

                  [tt][[!GoogleSitemap? &allowedtemplates=`3,5,2,15,21,7,8,9`]][/tt]

                  It only shows the homepage link, a single link in the sitemap and nothing else.

                  Any clues?

                  Its on Revo 2.0.7
                    Zaigham R - MODX Professional | Skype | Email | Twitter

                    Digging the interwebs for #MODX gems and bringing it to you. modx.link
                    • 23491 ☆ A M B ☆
                    • 1,056 Posts
                    Quote from: zi at Feb 24, 2011, 06:16 AM

                    Any clues?

                    Its on Revo 2.0.7

                    @Zi,

                    One point to double-check: make sure individual Resources have the "Searchable" setting checked, otherwise they’re excluded from the sitemap. However, since you say everything shows up when NOT passing allowedtemplates parameter, this may not be of any help to you.

                    You can also check the GoogleSitemap snippet’s default Property Set to make sure everything looks the way it should. In the past, I have limited templates using the property set directly vs. passing the snippet parameter...worth a shot?
                      Mike Reid - www.pixelchutes.com
                      MODx Ambassador / Contributor
                      [Module] MultiMedia Manager / [Module] SiteSearch / [Snippet] DocPassword / [Plugin] EditArea / We support FoxyCart
                      ________________________________
                      Where every pixel matters.
                      • 33337
                      • 3,975 Posts
                      http://screencast.com/t/wIZP5JQup

                      It looks like as soon as I add something in the allowedtemplates, it stops working. sad

                      Tried all sorts of combinations etc.
                        Zaigham R - MODX Professional | Skype | Email | Twitter

                        Digging the interwebs for #MODX gems and bringing it to you. modx.link