Page 1 of 1

Outputing rss as an xml file

Posted: Thu Apr 24, 2008 3:19 pm
by dwinters
Currently Our system outputs rss feed as a link to an XML file.

Using the method {news makerssbutton="true"} has three issues for me.

1 It shows the news item as -> title and the whole article for each news item
I need a simple title and summary like bbc http://newsrss.bbc.co.uk/rss/newsonline ... ge/rss.xml
reading the help this seems like an edit of the admin template but I cant make it work.

2 It uses a RSS logo - again editing the admin image could solve this - but I also need to link off plain text somewhere else in the page - ie "click HERE for RSS feed"

3 And the most imporatnt I wanted a simple xml file like the bbc example - and be able to specify where it lives on the server.

Anyone with any RSS experience that can help I would be very grateful, spent a few hours trying today with no joy.



Thanks Guys

Dan

Re: Outputing rss as an xml file

Posted: Thu Apr 24, 2008 3:32 pm
by calguy1000
1.  You can change the look and feel of the rss feed by changing the rss template in modules/News/templates/rss.tpl

2.  You can create whatever link you want, just link to /news/rss

Re: Outputing rss as an xml file

Posted: Thu Apr 24, 2008 3:59 pm
by dwinters
Thanks for that I have edited the layout now

But when I go to news/rss I get a "The page cannot be found" do I have to enable something first?

And any ideas on saving the file as an XML file like /rss.xml

Thanks again.

Dan

Re: Outputing rss as an xml file

Posted: Thu Apr 24, 2008 4:07 pm
by calguy1000
sorry.... forgot to be specific.

I'm using internal pretty urls, so on my site I access index.php/news/rss

if you've got mod_rewrite enabled, and have pretty urls enabled, it should be news/rss

if not.... then you'd need to go to: index.php?mact=News,cntnt01,rss,0&cntnt01showtemplate=false

I would suggest you enable (at the minimum) internal pretty urls
and then try it out.... if you do that, you won't need to generate a static file.

Re: Outputing rss as an xml file

Posted: Thu Apr 24, 2008 4:27 pm
by dwinters
Great thanks again progress being made, I am on a 64 bit windows server dont think I can use pretty URLS?

Windoze!

If not any ideas?

Thanks again

Dan

Re: Outputing rss as an xml file

Posted: Thu Apr 24, 2008 4:32 pm
by calguy1000
Then just use the internal pretty urls

modify your config.php

set 'internal_pretty_urls' to true
and 'use_hierarchy' to true.

Re: Outputing rss as an xml file

Posted: Thu Apr 24, 2008 7:52 pm
by dwinters
Thanks that works fine - the current site had an xml file - I guess I can just point the readers to this location now.

Thanks again

Dan

Re: Outputing rss as an xml file

Posted: Wed Apr 30, 2008 1:38 pm
by dwinters
Thanks Calguy for your help on this it is nearly complete

But they do need a static xml file rss.xml out puting to a specific location, how could this be acheived?

Cheers
Dan

Re: Outputing rss as an xml file

Posted: Thu May 08, 2008 9:37 am
by dwinters
Or a script added to the submit button on the news to make it save off a static xml file after each addition.

Sounds cluncky tho! Any ideas?

Cheers

Dan

Re: Outputing rss as an xml file

Posted: Thu May 08, 2008 7:37 pm
by dwinters
Calguy you said if I get the pretty urls working I dont need to write a static XML file.

What did you mean when you said that -is there  a way of tricking the system into seeing a static file where there is none

I need to get /newsrss.xml to exist

Thanks

Dan