We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 34193
    • 330 Posts
    OK I have a resource which has it's template set to empty.

    the content as the following snippet call
    [[!GoogleSiteMap? &maxDepth=`5` &excludeResources=`13,2,3,11`]]


    it's content type is set to XML

    but it seems to be inject some html from somewhere.

    This is what is produced

    www.funwithoutfrontiers.com/sitemap.xml

    which generates this
    <?xml version="1.0" encoding="utf-8"?>
    <html>
      <head>
        <title></title>
      </head>
      <body>
        http://funwithoutfrontiers.com/ 2012-02-17 daily 1.0 http://funwithoutfrontiers.com/about-us.html 2012-02-17 daily 1.0 http://funwithoutfrontiers.com/blog/ 2012-02-16 daily 1.0
        http://funwithoutfrontiers.com/blog/2012/02/15/welcome-and-hello/ 2012-02-15 weekly 0.75 http://funwithoutfrontiers.com/discussion-forum.html 2012-02-17 daily 1.0
        http://funwithoutfrontiers.com/events.html 2012-02-17 daily 1.0 http://funwithoutfrontiers.com/recommended-products-reviews.html 2012-02-17 daily 1.0
        http://funwithoutfrontiers.com/contact-us.html 2012-02-17 daily 1.0
      </body>
    </html>


    any help at all plz

    EDIT : using MODX Revolution 2.2.0-pl2 (traditional)

    EDIT 2 : forum wont let me copy the result proper follow link to see them plz [ed. note: pedley last edited this post 14 years, 8 months ago.]
      • 19369
      • 1,098 Posts
      That's odd, your configuration seems perfectly fine. Did you uncheck "Rich Text"editor?
      You may also check if there is something wrong in the template, is stored here:
      yourwebsite\core\components\googlesitemap\elements\chunks
        • 34193
        • 330 Posts
        Thanks yep double checked rich text. Was originally using the (empty) option on template which normally works np, have set up a template with only [[*content]] and using that and same issue.

        Check the chunks all looks good in there. Tried uninstalling and re-installing same.

        Even manually gone and deleted the cache incase it is a strange case there still the same.

        The most annoying thing is I have done this loads of times and it's allways worked, and everything looks the same had them up side by side and compared even.
          • 19369
          • 1,098 Posts
          Have you tried to specify a chunk with &containerTpl and &itemTpl parameter? Maybe it will work in this way. At the moment it seems that the snippet is not recognizing the chunks as there is no layout at all.