We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 37042
    • 384 Posts
    Hi all.
    I'm having problems getting an RSS Feed to work (Revo 2.5.5pl)
    Hoping someone can assits?


    When I run a Feed Validation over on W3.org I get the following message:

    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.

    The feed is working to some extent but seems to be displaying as some wierd html page



    My actual RSS Page is based on a Blank Template,
    * has content Type set to 'RSS'
    * has Content Disposition set to Inline

    <html>
    <head>
    <title>[[++site_name]] - [[*pagetitle]]</title>
    <base href="[[++site_url]]" />
    <link rel="stylesheet" href="http://modx.com/assets/components/discuss/themes/modx/css/index.css" type="text/css" />
    <link rel="stylesheet" href="http://modx.com/assets/components/discuss/themes/modx/css/jquery-ui-1.8.16.custom.css" type="text/css" />
    <script type="text/javascript" src="http://modx.com/assets/components/discuss/themes/modx/js/jquery-1.6.2.min.js"></script>
    <script type="text/javascript" src="http://modx.com/assets/components/discuss/themes/modx/js/jquery.scrollTo-min.js"></script>
    <script type="text/javascript" src="http://modx.com/assets/components/discuss/themes/modx/js/jquery-ui-1.8.16.custom.min.js"></script>
    <script type="text/javascript" src="http://modx.com/assets/components/discuss/themes/modx/js/discuss.js"></script>
    <script type="text/javascript" src="http://modx.com/assets/components/discuss/themes/modx/js/sh/shCore.js"></script>
    <script type="text/javascript" src="http://modx.com/assets/components/discuss/themes/modx/js/sh/shAutoloader.js"></script>
    <script type="text/javascript" src="http://modx.com/assets/components/discuss/themes/modx/js/sh/shDiscuss.js"></script>
    <script type="text/javascript" src="http://modx.com/assets/components/discuss/themes/modx/js/dis.sticky.js"></script>
    <script type="text/javascript">// <![CDATA[
    DIS.url = "/";DIS.shJsUrl = "http://modx.com/assets/components/discuss/themes/modx/js/sh/";DIS.config.connector = "http://modx.com/assets/components/discuss/connector.php"
    // ]]></script>
    <script type="text/javascript" src="http://modx.com/assets/components/discuss/themes/modx/js/dis.post.modify.js"></script>
    <script type="text/javascript" src="http://modx.com/assets/components/discuss/themes/modx/js/dis.post.buttons.js"></script>
    </head>
    <body>
    [[*content]]
    <script type="text/javascript">
            var DISModifyPost = $(function() {
                DIS.config.attachments_max_per_post = 5;
                DIS.DISModifyPost.init({
                    attachments: 1
                });
            });</script>
    </body>
    </html>


    The content of the RSS Page is

    <?xml version="1.0" encoding="UTF-8"?>
    <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>[[*pagetitle]]</title>
        <link>[[~[[*id]]? &scheme=`full`]]</link>
        <description>[[*introtext:cdata]]</description>
        <language>[[++cultureKey]]</language>
        <ttl>120</ttl>
        <atom:link href="[[~[[*id]]? &scheme=`full`]]" rel="self" type="application/rss+xml" />
    [[getResources?
      &tpl=`rssitem-eng`
      &parents=`3`
      &depth=`5`
      &limit=`10`
      &includeContent=`1`
      &includeTVs=`1`
      &showHidden=`0`
      &hideContainers=`1`
    ]]
    </channel>
    </rss>
    


    My GetResources Call is

    <item>
      <title>[[+pagetitle:htmlent]]</title>
      <link>[[++site_url]][[~[[+id]]]]</link>
      <description>
        [[+introtext:default=`[[+content:ellipsis=`600`]]`:cdata]]
      </description>
      <pubDate>[[+publishedon:strtotime:date=`%a, %d %b %Y %H:%M:%S -0600`]]</pubDate>
      <guid isPermaLink="false">[[++site_url]][[~[[+id]]]]</guid>
      <dc:creator>
          [[+createdby:userinfo=`fullname`]]
      </dc:creator>
    </item>




      ...
      • 37042
      • 384 Posts
      Guys - fixed my problem. I had the Template set to 'Blank' instead of 'Empty'. Unfortunately, I actually had a template called Blank with some html in it so it was trying to output the rss feed within that.
        ...