We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 15013
    • 21 Posts
    Hi, okay I’m on a deadline for a job and I’ve come up stuck with an RSS template. I swear this was working a couple of hours ago, but now when I preview the feed, I only get the first blog post, and when I view the source, all my tv calls are empty. I’ve tried deleting the TVs, the RSS, this chunk, the whole lot, bar a modx reinstall, and I cannot figure out what is going wrong. Can anyone see anything wrong here:
    
    
    <item>
    <title>[+rss_pagetitle+]</title>
    <link>[(site_url)][~[+id+]~]</link>
    <description><![CDATA[ [+introtext+] ]]></description>
    <pubDate>[+rss_date+]</pubDate>
    <guid isPermaLink="false">[(site_url)][~[+id+]~]</guid>
    </item>
    <trovit>
    <ad>
    <id><![CDATA[[+tvjobref+]]]></id>
    <url><![CDATA[[(site_url)][~[+id+]~]]]></url>
    <title><![CDATA[[+rss_pagetitle+]]]></title>
    <content><![CDATA[[+introtext+]]]></content>
    <city><![CDATA[[+tvjoblocation+]]]></city>
    <salary><![CDATA[[+tvjobsalary+]]]></salary>
    <category><![CDATA[[+tvjobcategory+]]]></category>
    <date><![CDATA[[+tvpostdate+]]]></date>
    </ad>
    </trovit>
    <br /><br />
    [[Ditto? &parents=`9` &format=`rss` &summarize=`20` &total=`20` &tpl=`rss_trovit`]] 


    The above is my ditto call which I’m sure is fine seeing as I get one blog post.

    Please help!!!!
      • 5340
      • 1,624 Posts
      Since I’m no expert in rss feeds I’ll post my code. Maybe it helps
      Modify it to your needs.

      <item>
      <title>[+rss_pagetitle+]</title>
      <link>[(site_url)][~[+id+]~]</link>
      <description><![CDATA[ [+content+] ]]></description>
      <pubDate>[+rss_date+]</pubDate>
      <guid>[(site_url)][~[+id+]~]</guid>
      <dc:creator>[(site_name)]</dc:creator>
      [+tagLinks+]
      </item>

      +

      [[Ditto? &parents=`2` &depth=`1` &format=`rss` &showInMenuOnly=`1` &tpl=`rssTpl`]]

      Also try
      http://beta.feedvalidator.org/
        • 15013
        • 21 Posts
        Thanks cipa.

        It’s to do with my TV calls, they just aren’t working. I’ve tried deleting/renaming them, I don’t get it! Massive headache!!!
          • 5340
          • 1,624 Posts
          A few ideas

          1. Try Ditto with regular content(No rss). Try to reinstall Ditto.

          2. <![CDATA[[+tvjobref+]]]> into <![CDATA [[+tvjobref+]] ]>

          3. Have you looked in the source of the rss feed? Maybe the articles are not displayed because of an rss formatting error

          4. Did you do any upgrades recently. Maybe something(a file) did not transfer correctly.

            • 15013
            • 21 Posts
            Hi Cipa,

            I found out earlier that spaces break it all together, I think that makes it fail a XML markup test.

            I know the articles are not displaying because there is indeed a format error, however the reason there is an error is because the TV calls don’t return anything, so there is a missing set of []’s.

            Haven’t done any upgrades.

            Gonna delete ditto now and try again, really hope that works!

            thanks dude.
              • 15013
              • 21 Posts
              Okay so I went to the trouble of reinstalling modx, new db and all.

              Must be a syntax issue after all as I have got the same problem.