Make RSS feed from News?

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
badfrog@w00tz!

Make RSS feed from News?

Post by badfrog@w00tz! »

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

Code: Select all

{cms_module module='News' category="General" number="10" summarytemplate="rssfeed.tpl"}
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

Code: Select all

{content}
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]
Last edited by badfrog@w00tz! on Mon Aug 21, 2006 4:39 pm, edited 1 time in total.
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

Re: Make RSS feed from News?

Post by tsw »

rss feed works here out-of-the box.

how do you call news on your site template?
Locked

Return to “CMSMS Core”