We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18367
    • 834 Posts
    Yeh, I tried that already, same result.

    Cleared the cache.

    It’s really strange.
      Content Creator and Copywriter
      • 16895
      • 87 Posts
      In that case I have no idea what’s wrong huh
        • 6332
        • 8 Posts
        Quote from: legio_noctis at Oct 07, 2010, 06:35 AM

        If the snippet is correct, it might be cached in this state. Try replacing the square brackets with [! !] (so [!MySnippetHere?foo=bar !] ) to stop MODx caching the result of the snippet call.

        You have typo in snippet call:

        [!MySnippetHere? &foo=`bar` !]

        Dont omit the & and ` characters
        • The first parameter can immediately follow the ? with no space and no & character. In most cases, the `` backticks are only necessary if the parameter contains a space.
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org
            • 7527
            • 437 Posts
            One question. It says that not all docs can be ’1’ mine are all set to ’.1’

            Is that acceptable?
              www.PawsForWildlife.co.uk
              www.Borntobrick.co.uk
              • 33479
              • 15 Posts
              I’m using Evo 1.05 and get this error when viewing the XML file.

              This XML file does not appear to have any style information associated with it. The document tree is shown below.

              <?xml version="1.0" encoding="UTF-8"?> is missing and
              <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> is shown as just <urlset>

              I copied to code from the tutorial and it is all there.
              <?xml version="1.0" encoding="UTF-8"?>
                  <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
                      [!Ditto?&dateFormat=`%Y-%m-%d` &parents=`0` &tpl=`google-sitemap-tpl` &displayArchive=`0` &dateSource=`editedon` &summarize=`500` &total=`500` &sortBy=`createon` &depth=`6` &showInMenuOnly=`1`!]
                  </urlset>


              Here is the link http://devzg.zerogravitywebworks.com/sitemap.xml.

              Does anyone have any ideas?
                Darren Burns
                Zero Gravity Web Works
                • 16895
                • 87 Posts
                There doesn’t appear to be anything wrong with that sitemap. It’s not supposed to look pretty - it’s a standard machine-readable form so that search engines can index your site more efficiently.

                The reason your browser tells you that there is no style information available is that XML can be converted into other formats with a language called XSLT, similarly to how CSS can be used to style (x)HTML (although a lot more complex).

                @distant_smile They can all be set to 1 if you want: the reason they shouldn’t be is that the number indicates the relative importance of a page on a scale of 0 to 1.

                Some people will inevitably try and set all their pages to 1 to try and make them look more important to search engines, but the people who write search engine algorithms aren’t stupid and will simply ignore this. The priority is simply a good way of picking out the most important pages on your site so that they will be found instead of less important pages.