We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 13730
    • 149 Posts
    MODX 2.2
    getResources 1.4.2

    I follow the tutorial at « rtfm.modx.com/display/ADDON/getResources.Building+a+RSS+feed » for creating a RSS feed with getResources.

    When I test my feed it display a web page with the source code of the feed.

    I validated the page with the W3C Feed Validator that sent me the following message, with no surprise :

    « It looks like this is a web page, not a feed. I looked for a feed associated with this page, but couldn't find one. Please enter the address of your feed to validate.
    »

    <html>
    <head>
    <title>Sofie - RSS</title>
    <base href="http://www.mydomain.ca/" />
    <link rel="alternate" type="application/rss+xml" title="Follow this website with RSS" href="index.php?id=48" />
    <link rel="stylesheet" href="http://modx.com/assets/components/discuss/themes/modx/css/index.css" type="text/css" />


    Does anyone has experienced this problem and found a solution?

    Thank very muuch
    [ed. note: jber last edited this post 12 years, 2 months ago.]
      • 33968
      • 863 Posts
      The problem is the <html>, <head> and <body> tags in your template.

      You'll need to select a blank template for your RSS resource, which should only contain this:
      <?xml version="1.0" encoding="UTF-8"?> 
      <rss version="2.0" .....
       
      ..etc 
       
      </rss>
      
        • 13730
        • 149 Posts
        Thank you very much for answering.

        It solves my problem.