Hi,
you have to put this call in a new document.
Change the page settings and choose type=text/xml and select the blank template.
:-)
You have a good example in the default content of modx.
1) create a page:
- alias feed.rss
- file type text/xml
- template blank
put your ditto code
[[Ditto? &startID=`10` &format=`rss` &summarize=`20` &total=`20`]]
replace &startID=`10` with the id your news folder
add in the head of your template:
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="[(site_url)][~11~]" />
replace [~11~] with the id your rss document
done
cheers guys. i will give that a go
Quote from: bocmaxima at Feb 08, 2007, 11:49 PM
Excellent, and it worked when i added a live bookmark to my browser, however when adding it to google reader I get nothing. Does the page need to be published, and if it does, where is a good place to publish it? Documents published under the root are added to WayFinder, and ones published where I put it (News, where the blog is), end up being blog posts, haha.
publish the document and disable ’’show in menu’’ option.
Hi,
to skip it from the ditto listing you can add a filter to your call
&filter=`id,xml_doc_id,2`
replace the xml_doc_id by the id of your rss doc.
:-)