Archive of UserLand's first discussion group, started October 5, 1998.
user.html.macros.rssChannel
Author: Dave Winer Posted: 7/14/1999; 12:41:05 PM Topic: user.html.macros.rssChannel Msg #: 8473 Prev/Next: 8472 / 8474
The problem: Jeff Cheney, webmaster at Mac Publishing wants to include MacWEEK headlines in the MacWorld home page. They're already producing a RSS version of MacWEEK news. The MacWorld site is generated with Frontier (as is the MacWEEK site).What's needed: A macro that reads a channel and renders it as HTML text. The macro is called from the template for the MacWorld home page. It caches the resulting text so that the channel is not read more than once an hour.
The script
Here's a source listing for the macro.
To include it in a page call it as follows:
{rssChannel ("http://macweek.zdnet.com/macweek.xml")}
The rendering
It's very simple. You can tweak it to make it how you like it. (That's why it's sample code.)
You can use this to render any valid RSS file that's accessible over the Internet.
There are responses to this message:
- Re: user.html.macros.rssChannel, Jeff Cheney, 7/14/1999; 3:33:56 PM
This page was archived on 6/13/2001; 4:51:24 PM.
© Copyright 1998-2001 UserLand Software, Inc.