We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 31227
    • 198 Posts
    Hmm... i like this snippet, although I cant get it to read one folder which is is not in modx. Here is my structure:
    home (modx) home-en
    about us (modx) about-en
    about cyprus (modx) cyprus-en
    properties (redirect to a folder) list-en
    contact us (modx) contact-en
    All the links are created in the xml file except the properties (which is the most important actually). I created a weblink to create a redirect to a folder. So basicly list-en redirect to list-e/featured.php
    Featured.php links to many pages. Anyway the webpage is http://www.viriko.com a sitemap that was created by GoogleSiteMap_XML script is located here http://viriko.com/del.xml & a created by some other site (online service) is located here http://www.viriko.com/sitemap.xml
    The 2nd link is how a sitemap should actually look. Does GoogleSiteMap_XML read only links in modx?
      Pure MODx sites
      Viriko.ru & Viriko.com - Multilingual and running on 1 MODx
      • 33372
      • 1,611 Posts
      Yes. It doesn’t scan for files. It just pulls all of the document info out of the MODx database.

      That would be a completely different animal, although if you had a script that scanned for actual files in specified directories you could certainly merge the two into one custom snippet and get a combined sitemap from it.
        "Things are not what they appear to be; nor are they otherwise." - Buddha

        "Well, gee, Buddha - that wasn't very helpful..." - ZAP

        Useful MODx links: documentation | wiki | forum guidelines | bugs & requests | info you should include with your post | commercial support options
        • 31227
        • 198 Posts
        anyone out there willing to do that grin
          Pure MODx sites
          Viriko.ru & Viriko.com - Multilingual and running on 1 MODx
          • 1649
          • 13 Posts
          I’d like to generate a XML Google Base (Froogle) feed for all my documents.

          I couldn’t find a snippet/plugin for this so I assume modifying this Google Site Map code would be the best and easiest way to go about it?

          Thanks
            • 33372
            • 1,611 Posts
            It might be easier to start with the Ditto implementation of creating a Google Site Map, since Ditto is very easy to template.
              "Things are not what they appear to be; nor are they otherwise." - Buddha

              "Well, gee, Buddha - that wasn't very helpful..." - ZAP

              Useful MODx links: documentation | wiki | forum guidelines | bugs & requests | info you should include with your post | commercial support options
              • 34162
              • 1 Posts
              ok guys this is pretty awesome, i’ve managed to get it generating my sitemap for google, however the page alias i set to sitemap, but my friendly url thing is putting nothing or html on end. so it’s not sitemap.xml which is what google looks at...

              am i doing something wrong?
                • 33372
                • 1,611 Posts
                You can enter "sitemap.xml" into the alias field for that document. As long as you don’t have the SEO Strict plugin installed that will work easily. If you do, then you need to use its override feature for that document.
                  "Things are not what they appear to be; nor are they otherwise." - Buddha

                  "Well, gee, Buddha - that wasn't very helpful..." - ZAP

                  Useful MODx links: documentation | wiki | forum guidelines | bugs & requests | info you should include with your post | commercial support options
                  • 34162
                  • 1 Posts
                  thanks that seems to work, i’ll try re-submitting to google and see what it says...
                    • 25132
                    • 129 Posts
                    I cannot save the GoogleSiteMap_XML snippet. Getting the following error in MODx Manager:


                    Not Acceptable

                    An appropriate representation of the requested resource /modx/manager/index.php could not be found on this server.

                    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


                    From doing some searching, does this have something to do with the host server security settings? How can I rectify this? Thanks for your help!