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
-
☆ A M B ☆
- 2,213 Posts
Check that the page is published and that you have no template?
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
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
I expect you’re using the Rich Text Editor for the document as there are a pair of <p> tags wrapping your xml content.
Ah,
gets me every time.
All ok now. Many thanks.
Content Creator and Copywriter
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
Hmmm,
started working again.
i think I might have words with my hosting provider.
Content Creator and Copywriter