Make RSS pretty for non-aggregators

This is a forum to suggest new features for mojoPortal. 

This thread is closed to new posts. You must sign in to post in the forums.
7/15/2005 7:12:05 AM
Gravatar
Total Posts 148

Make RSS pretty for non-aggregators

Hi Joe,

In the low-hanging fruit department, I just came across these couple pages describing how to keep the raw RSS XML from displaying in user's browsers.

--Dean

7/15/2005 7:38:05 AM
Gravatar
Total Posts 19

Re: Make RSS pretty for non-aggregators

Nice looking XML! I'm going to try making a RSS style sheet for the Blog.
This is something I did'nt know that whas possible.
7/15/2005 12:59:29 PM
Gravatar
Total Posts 18439

Re: Make RSS pretty for non-aggregators

Thanks Dean, that does look like a good thing to do and easy!

Jasmin, if you make an xsl stylesheet that looks nice please send it and I'll set it up. If you don't get to it I'm sure I can cobble something together.

Joe
7/15/2005 4:36:32 PM
Gravatar
Total Posts 19

Re: Make RSS pretty for non-aggregators

You want me to do a XSL stylesheet?
I'm going to check that. I whas already watching for a CSS but now that you say XSL I will switch.
And I already checked out for the XmlTextWriter but I did'nt found how to make it write those lines:
<?xml-stylesheet title="CSS_formatting" type="text/css" href="./rss.css"?>
<?xml-stylesheet title="XSL_formatting" type="text/xsl" href="./rss2html.xsl"?>



7/16/2005 3:31:20 AM
Gravatar
Total Posts 18439

Re: Make RSS pretty for non-aggregators

Oh, if css works thats ok too. I didn't know it would. I thought it had to be xsl to transform xsl into html. Seems like it would be more possibilities with xsl since you can add html elements into it which you can't do in just css as far as I  know.

I will implement the part to write the stylesheet tag into the xml and will make it easy to change which style sheet by storing the settings in the web.config.

Do you have Visual Studio .NET? or are you just working with the release files?  If you are working with VS.NET the best thing to do would be to setup TortoiseSVN to pull from the repository that way when I add the code to write the stylesheet tag etc you will be able to get the latest code easily.

I will look into it this morning and post again once it is in svn.
7/16/2005 4:01:56 AM
Gravatar
Total Posts 18439

Re: Make RSS pretty for non-aggregators

Maybe I should have read the articles first I see their examples are using css now that I am reading them, but the second article has also information about using xsl.  It gives even more possiblilites but css is fine for now if that is easier for you.

The benefit of using xsl would be that additional html markup and text can be added. I was imagining actually putting text in there that descripbes what rss is all about with maybe some links to relevant pages. To me the idea is making it understandable for someone who doesn't know about rss when they click the rss link.

I picture putting something like"

RSS stands for Really Simple Syndication and allows others to subscribe to your content or include it in their web sites. The following links provide more information about RSS
link
link
maybe a few links to free RSS readers

pretty rss data goes here


7/16/2005 4:07:33 AM
Gravatar
Total Posts 18439

Re: Make RSS pretty for non-aggregators

Actually the second article has a good example of pretty much what I was picturing though the style could be different.

http://interglacial.com/rss/somethingawful.rss

I see they also manage to add content in the css approach, I didn't know you could do that. I thought the whole idea of css was to separate style from content so putting content into the css file seems a little alien to me but apparently that works to.
7/16/2005 6:08:01 AM
Gravatar
Total Posts 18439

Re: Make RSS pretty for non-aggregators

I've made the changes to write both a css and an xsl file into the rss.
You can specify the files to use in the web.config using these settings
RSSCSS
RSSXsl

Right now its not pretty but it seems to work.

It will use the Xsl file if the browser supports it otherwise it falls back to using the css file.
If you want to force it to only use css, set RSSXsl = ""

I've committed it to svn.
7/16/2005 6:54:01 AM
Gravatar
Total Posts 19

Re: Make RSS pretty for non-aggregators

Nice work Joe that's what I would have done since now you give the opportunity to use both styling methods to mojoportal users.
I installed TortoiseCVS, I'm stucked at the part to configure it for using SSH with Putty and those weird apps that I never used before.
And the link to the page that explain how to congigure TortoiseCVS with ssh does'nt seem to work. :S

You will need to give me a hand on that. And yes, I use Visual Studio.NET 2003 Entreprise Architect.
7/16/2005 7:01:21 AM
Gravatar
Total Posts 18439

Re: Make RSS pretty for non-aggregators

You mean TortoiseSVN not TortoiseCVS right? They are 2 different things, you need TortoiseSVN not TortoiseCVS.

Once you have TortoiseSVN installed configuring ssh is easy, open windows explorer, then
File>TortoiseSVN >Settings

a dialog box will appear, click the Network tab

in the box for ssh put
C:\Program Files\TortoiseSVN\bin\TortoisePlink.exe

or browse to that folder and select it

as long as your firewall is not blocking port 22 you are all set.
7/16/2005 7:32:48 AM
Gravatar
Total Posts 19

Re: Make RSS pretty for non-aggregators

Oups . Now it's working.
I whas using TortoiseCVS. Now I understand that the CVS one is for the server and the SVN is for the client.
I'm going to see what can be done with this software.

You must sign in to post in the forums. This thread is closed to new posts.