Make RSS feed from News?
Posted: Mon Aug 21, 2006 4:23 pm
Ok, so I'm trying to get an RSS feed working from the News module, since the Autodiscovery link option appears to give garbled output (it includes the entire page template, and doesn't include the right news category if there is more than one category on the same page). I must be doing something wrong because this looks to be a lot harder than it should be and is giving me a headache. Here's what I did, can someone please tell me where I went wrong?
Created a new page, named Rss, and added this tag
Then realized that I had to supply a template, and couldn't use my regular template because it would include that useless non-rss-y stuff, so I created a template (named "None") composed of only
So I wouldn't get junk in the output. Went back and edited the Rss page to use the new None template. So far so good, seemed logical, thought it would work.
I clicked "Preview" to admire my work, and I got a blank page in the frame. Hmmm.... So maybe preview doesn't like XML, so I saved the Rss page, and tried to open it using the page alias url (i.e. index.php?page=rss). IE gives me a 404 error -- which, interestingly enough, is *not* my site's assigned 404 page -- when I try to hit that url. Entirely not what I expected, and I'm not sure how to proceed, or even if this is indeed a CMSMS problem, or just stupidity on IE's part.
[Edit]
Looks like this is IE stupidity, Firefox handles things a bit more gracefully, I actually see the data in the feed. I have 2 problems though -- The news module inserts two comment lines before it processes the news, and the content type is returned as "text/html" -- is there a way to change that?
BTW, you can see all this at http://w00tzgames.com/index.php?page=rss
[/Edit]
Created a new page, named Rss, and added this tag
Code: Select all
{cms_module module='News' category="General" number="10" summarytemplate="rssfeed.tpl"}Code: Select all
{content}I clicked "Preview" to admire my work, and I got a blank page in the frame. Hmmm.... So maybe preview doesn't like XML, so I saved the Rss page, and tried to open it using the page alias url (i.e. index.php?page=rss). IE gives me a 404 error -- which, interestingly enough, is *not* my site's assigned 404 page -- when I try to hit that url. Entirely not what I expected, and I'm not sure how to proceed, or even if this is indeed a CMSMS problem, or just stupidity on IE's part.
[Edit]
Looks like this is IE stupidity, Firefox handles things a bit more gracefully, I actually see the data in the feed. I have 2 problems though -- The news module inserts two comment lines before it processes the news, and the content type is returned as "text/html" -- is there a way to change that?
BTW, you can see all this at http://w00tzgames.com/index.php?page=rss
[/Edit]