Re: RSS Feeds; basic info

This WebDNA talk-list message is from

2005


It keeps the original formatting.
numero = 61485
interpreted = N
texte = Four major things you need to do for RSS. 1) Add the following to the -- This is not really required but does give you the neat "Live Bookmark" option on Firefox. 2) Make sure the suffix mapping on the host is correctly set for .rss - I had a little trouble with the typical .xml so I just mapped .rss on mine. 3) Write the actual feed. My is scheduled up to run hourly through CRON (I've been burned by triggers too much). Here's my my code that pulls stories and writes the feed from a database. [!] FIRST, WRITE THE HEADER [/!] [WriteFile feed.rss] Redfish Nation News News and highlights from the Redfish Nation, the Oh Boy! Oberto Redfish Cup, and the Redfish Nation Q SERIES http://www.redfishnation.com [/WriteFile] [!] SECOND, WRITE THE ACTUAL HEADLINE FEED [/!] [search db=theStories.db&neSTORYIDdata=find_all&theDATEtype=date&theDATEsort=1&t heDATEsdir=de&max=15] [founditems] [AppendFile feed.rss] [listwords words=[TITLE]&Delimiters= ,%0B][WORD] [/listwords] [listwords words=[TEXT]&Delimiters= ,%0B][Hideif [index]>25][word] [SHOWIF [INDEX]=25]...[/SHOWIF][/Hideif][/listwords] http://www.redfishnation.com/view.tpl?STORYID=[STORYID] [/AppendFile] [/founditems] [/search] [!] THIRD, WRITE THE FOOTER AND CLOSE THE FEED [/!] [AppendFile feed.rss] [/AppendFile] 4) After all is said and done, run your feed through feedvalidator.org - you might need to do some tweaking to make it validate properly, but the script above is what runs mine. Good luck, Steve ---- Steve Dannaway JM Associates, Inc. - The Worldwide Leader in Outdoor Television FishFactory.com / RedfishNation.com > I just had a request for including RSS feeds into a website I'm > bidding on. I don't know know much about it, so I did a little > research and found one of Alain's sites where the feed is a link > straight to the article. I found an old msg in the archives talking > about this, but the link to the parser is not working. If I just know > the process, I can probably figure out how to code for it, but I have > no clue where to start, how these files are grabbed, etc. > > Thanks, > Terry > > > ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: RSS Feeds; basic info ( Larry Hewitt 2005)
  2. Re: RSS Feeds; basic info ( "Nitai @ ComputerOil" 2005)
  3. Re: RSS Feeds; basic info ( Mark Derrick 2005)
  4. Re: RSS Feeds; basic info ( Marc Thompson 2005)
  5. Re: RSS Feeds; basic info ( "Nitai @ ComputerOil" 2005)
  6. Re: RSS Feeds; basic info ( Mark Derrick 2005)
  7. Re: RSS Feeds; basic info ( Terry Wilson 2005)
  8. Re: RSS Feeds; basic info ( Steve Craig 2005)
  9. Re: RSS Feeds; basic info ( Steve Dannaway 2005)
  10. Re: RSS Feeds; basic info ( matthew.bohne@benetela.com 2005)
  11. RSS Feeds; basic info ( Terry Wilson 2005)
Four major things you need to do for RSS. 1) Add the following to the -- This is not really required but does give you the neat "Live Bookmark" option on Firefox. 2) Make sure the suffix mapping on the host is correctly set for .rss - I had a little trouble with the typical .xml so I just mapped .rss on mine. 3) Write the actual feed. My is scheduled up to run hourly through CRON (I've been burned by triggers too much). Here's my my code that pulls stories and writes the feed from a database. [!] FIRST, WRITE THE HEADER [/!] [WriteFile feed.rss] Redfish Nation News News and highlights from the Redfish Nation, the Oh Boy! Oberto Redfish Cup, and the Redfish Nation Q SERIES http://www.redfishnation.com [/WriteFile] [!] SECOND, WRITE THE ACTUAL HEADLINE FEED [/!] [search db=theStories.db&neSTORYIDdata=find_all&theDATEtype=date&theDATEsort=1&t heDATEsdir=de&max=15] [founditems] [AppendFile feed.rss] [listwords words=[TITLE]&Delimiters= ,%0B][WORD] [/listwords] [listwords words=[text]&Delimiters= ,%0B][Hideif [index]>25][word] [SHOWIF [INDEX]=25]...[/SHOWIF][/Hideif][/listwords] http://www.redfishnation.com/view.tpl?STORYID=[STORYID] [/AppendFile] [/founditems] [/search] [!] THIRD, WRITE THE FOOTER AND CLOSE THE FEED [/!] [AppendFile feed.rss] [/AppendFile] 4) After all is said and done, run your feed through feedvalidator.org - you might need to do some tweaking to make it validate properly, but the script above is what runs mine. Good luck, Steve ---- Steve Dannaway JM Associates, Inc. - The Worldwide Leader in Outdoor Television FishFactory.com / RedfishNation.com > I just had a request for including RSS feeds into a website I'm > bidding on. I don't know know much about it, so I did a little > research and found one of Alain's sites where the feed is a link > straight to the article. I found an old msg in the archives talking > about this, but the link to the parser is not working. If I just know > the process, I can probably figure out how to code for it, but I have > no clue where to start, how these files are grabbed, etc. > > Thanks, > Terry > > > ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Steve Dannaway

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

[ShowIf] and empty fields (1997) Multi-Row Tables from a search. (1997) Flash Stores (2003) triggers on Linux? (2000) emailer (1997) [HIDEIF] inside [FOUNDITEM] (1997) Sandboxes (2004) getting images' width/height (1998) searchable list archive (1997) HELP-1!!! (1998) WebCatalog and WebTen (1997) & in Lookups (1997) _ in front of field name (1998) [SearchString] problem with [search] context (1997) Anyone have a register your domain app? (2000) HTML Editors (1997) WebCatalog can't find database (1997) I have troubles to send message out (1998) price carry over (1997) Fwd: Protect Tag and Groups (1998)