Newsfeed template?

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
FinnK

Newsfeed template?

Post 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?
FinnK

Re: Newsfeed template?

Post 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!
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Re: Newsfeed template?

Post 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.
FinnK

Re: Newsfeed template?

Post 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?
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Re: Newsfeed template?

Post 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
FinnK

Re: Newsfeed template?

Post 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?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Newsfeed template?

Post 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]
FinnK

Re: Newsfeed template?

Post 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....
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Newsfeed template?

Post by Dr.CSS »

you could put a little explanitory text by the button...
Locked

Return to “CMSMS Core”