We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18367
    • 834 Posts
    Hi,

    I know this has beenasked before, but I can;t seem to find an answer for it.

    I’m trying to set up a simple rss feed in modx/ditto.

    I followed the guide here

    http://wiki.modxcms.com/index.php/Basic_RSS_feed

    But when I try the feed all I get is a blank page.

    Can someone point out where I’m going wrong?

    Thanks

    Here’s the code

    Call
    [[Ditto? &parents=`22` &format=`rss` &summarize=`20` &total=`20` &commentschunk=`Comments`]]


    I tried it with a [! but got an error
    XML declaration allowed only at the start of the document

    Chunk
    <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>


    feed address

    http://makethemclick.com.au/library2/feed.xml

    Which just gives a blank page

    Thanks in advance.
      Content Creator and Copywriter
      • 1343 ☆ A M B ☆
      • 2,213 Posts
      Check that the page is published and that you have no template?
        Patrick | Server Wrangler
        About Me: Website | Tweets |  MODX Hosting
        • 18367
        • 834 Posts
        It is published.

        The template is set to blank as per the instructions.

        PS

        It I use [! in the call I can at least see the source code and that is showing the actual posts.

        So it’s pulling the right content it’s just not displaying it.

          Content Creator and Copywriter
          • 36592
          • 970 Posts
          Quote from: markg at Sep 17, 2010, 10:45 PM

          feed address
          http://makethemclick.com.au/library2/feed.xml

          It looks like the page URL is ... http://makethemclick.com.au/library2/feed
            • 18367
            • 834 Posts
            oops Sorry,

            but I still get the error

            XML Parsing Error: XML or text declaration not at start of entity
            Location: http://makethemclick.com.au/library2/feed
            Line Number 1, Column 4:<p><?xml version="1.0" encoding="UTF-8" ?>
            ---^


              Content Creator and Copywriter
              • 4310
              • 2,310 Posts
              I expect you’re using the Rich Text Editor for the document as there are a pair of <p> tags wrapping your xml content.
                • 18367
                • 834 Posts
                Ah,

                gets me every time.

                rolleyes

                All ok now. Many thanks.
                  Content Creator and Copywriter
                  • 18367
                  • 834 Posts
                  This suddenly stopped working.

                  Now I get either the parse error or a page not found.

                  It’s really weird.

                  Any suggestions?

                  Thanks

                  XML Parsing Error: XML or text declaration not at start of entity
                  Location: http://makethemclick.com.au/library2/feed
                  Line Number 2, Column 1:<?xml version="1.0" encoding="UTF-8" ?>
                  ^


                  http://makethemclick.com.au/library2/feed
                    Content Creator and Copywriter
                    • 18367
                    • 834 Posts
                    Hmmm,

                    started working again.

                    i think I might have words with my hosting provider.
                      Content Creator and Copywriter