Page 1 of 1

Newsfeed template?

Posted: Mon Jun 19, 2006 9:57 pm
by FinnK
I have placed a XML neewsfeedbutton on my frontpage. When I activate it Opera shows all the newstexts totally unformatted. IE shows it like (I believe) XML program code lines and      

 Firefox reports:
        This XML file does not appear to have any style information associated with it.   and then the XML(?) code:

Code: Select all

−
	<rss version="2.0">
−
	<channel>
<title>Norske Filmklippere [N:F:K]</title>
<link>http://www.filmklippere.com</link>
<description>Aktuelle nyheter</description>
−
	<item>
<title>Sommerhilsen</title>
−
	<link>
http://www.filmklippere.com/index.php?mact=News,cntnt01,detail,0&cntnt01articleid=28&cntnt01returnid=15
</link>
−
	<guid>
http://www.filmklippere.com/index.php?mact=News,cntnt01,detail,0&cntnt01articleid=28&cntnt01returnid=15
</guid>
<pubDate>Mon, 19 Jun 2006 14:50:52 +0000</pubDate>
<category>Generellt</category>
−
	<description>

			En hilsen fra oss som holder på å lære dette publiseringssystemet: Siv og Thomas.
God sommer!
</description>
</item>
−
	<item>
<title>Streiken i NRK er avsluttet</title>
−
	<link>
And so on....


In the news/template folder there is a rssfeed.tpl file - do I somehow have to activate it in the call: {cms_module module='news' makerssbutton="true"} or what can I do?

Re: Newsfeed template?

Posted: Tue Jun 20, 2006 9:28 pm
by FinnK
I cant find any documentation on the news / rss / xml /newsfeed anywhere...

Is it possible for someone to explain how the newsfeed feature is supposed to work? In the news/template folder there is a  rssfeed.tpl file. When and how does this come into play?

Thanks!

Re: Newsfeed template?

Posted: Wed Jun 21, 2006 10:15 am
by Ted
http://en.wikipedia.org/wiki/RSS_(protocol)

rssfeed.tpl is used as the template for the news feed.  Then you click on the xml button, that's what you're seeing.  If you want to setup some styling for it, you're more that welcome, though I have no idea how to do it.

Re: Newsfeed template?

Posted: Wed Jun 21, 2006 11:49 am
by FinnK
Sorry for nagging,

but what about the errormessage from Firefox:
        "This XML file does not appear to have any style information associated with it." 

And the output I get as explained in the first post - Is that what it should look like from rssfeed.tpl?

Re: Newsfeed template?

Posted: Wed Jun 21, 2006 11:56 am
by Ted
Most sites don't make stylesheets for their rss feeds, as most humans won't see it.

For example: http://digg.com/rss/index.xml or http://rss.slashdot.org/Slashdot/slashdot

Re: Newsfeed template?

Posted: Wed Jun 21, 2006 4:04 pm
by FinnK
Most sites don't make stylesheets for their rss feeds, as most humans won't see it.
This I do not understand: When I put {cms_module module='news' makerssbutton="true"} on a page and then use it to subscribe to the newsfeed I do get those sort of meaningless pages. BTW The examples in your post looks the same for me.

If I'm not supposed to see newsfeed this way when subscribing - am I doing something wrong here?

Re: Newsfeed template?

Posted: Thu Jun 22, 2006 2:46 am
by Dr.CSS
if this is what you are seeing it is because it is a link to subscribe not, a link to a human readable page, i have sage installed on firefox and when i open it and ask it to search this page for rss feeds 3 show up, CMSMS, Slashdot, and digg, with a button to add them as feeds to sage...
the layout and look is determined by the RSS client that is being used, not CSS, firefox just letting you know it found no CSS, most feeds i've gotten are from asking sage to find them or a little orange box/button with the letters XML in it, if i'm not using sage and a stand alone reader, i right clik that and save the link and paste it into a reader as a feed... go to another web site and look for the orange box and just clik it and you will see the same thing, took me a couple of those to figure out the rite clik thing...

[attachment deleted by admin]

Re: Newsfeed template?

Posted: Thu Jun 22, 2006 3:00 pm
by FinnK
... so when using a normal web-brower one is not supposed to use the "xml" button? ..It's only for use for newsfeedreaders - standalone or plugins? If this is so it seems rather stupid to me, but maybe I am really thick. 

A vast amout of visitors will press this button without knowing exactly what it is and get - to them - meaningless garble. Is that a feature?

I see I have to read up on this, so excuse me....

Re: Newsfeed template?

Posted: Thu Jun 22, 2006 3:04 pm
by Dr.CSS
you could put a little explanitory text by the button...