numero = 59186
interpreted = N
texte = Here's all I did in WebDNA 4.5. Site has news and events databases. This code searches both and sends up to 15 news stories, followed by as many events as will equal 16 total stories. All the page needs to do is rattle off the proper RSS format and there's lots of validation sites around that will check your code. Fix the domain names and path(s) to your db(s) and you should be good to go.By the way, I get more traffic from RSS than the rest of the site.-----------------------Begin code-------------------------------YOURSITE.comYour Description Here.en-ushttp://www.YOURSITE.com/Copyright 2004, Patrick McCormick Consultingpm@pmconsulting.biz (Patrick McCormick)pm@pmconsulting.biz (Patrick McCormick)http://www.xml.com/http://www.YOURSITE.com/img/rssLogo.gifYOURSITE.com[!]*** -------- Search The News Database -------- ***[/!][search db=db/news.db&geskudata=0&max=15][founditems][math show=F]limit=[numfound][/math]YOURSITE News: [title]http://www.YOURSITE.com/pgs/nws-t01.tpl?sku=[sku][convertchars][grep search=" "&replace= ][content][/grep][/convertchars][/founditems][/search][!]*** -------- Search the Events Database -------- ***[/!][search db=db/events.db&max=[math]16-[limit][/ math]&geevfdatedata=[math]{[date]}[/ math]&asevsdatesort=1&asevtimesort=2&evtimetype=time][founditems]YOURSITE Events: [name]http://www.YOURSITE.com/pgs/cal.tpl?_eqSKUdatarq=[sku][details][/founditems][/search]END CODE-----------------------------------------------------------------On Aug 25, 2004, at 3:50 PM, Phillip Bonesteele wrote:>> Xmlparse and xslt are available in 5.X versions as well.>> John is quite correct, that given knowledge of the RSS feed schema, you> could easily construct a XLS that would pull the various pieces out of> the RSS feed ... You could then easily stuff the results into a DB or a> temporary table if you didn't want to reparse the XML feed on each page> hit.>>> -----Original Message-----> From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com] On Behalf Of> John Peacock> Sent: Wednesday, August 25, 2004 1:17 PM> To: WebDNA Talk> Subject: Re: RSS Feed>> Nitai @ ComputerOil wrote:>>> Thanks, but dont we have the XML parser that could do that?>> Of course, if you are running 6.0, then you can use [xmlparse] and> friends to decode the RSS feed. In that case, I'd suggest you look at> [xsl] to create a style sheet to display the RSS contents via [xslt].>> I still assume most people are not running 6.x yet...>> John>> --> John Peacock> Director of Information Research and Technology Rowman & Littlefield> Publishing Group> 4501 Forbes Boulevard> Suite H> Lanham, MD 20706> 301-459-3366 x.5010> fax 301-429-5748>> -------------------------------------------------------------> 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/>>>> -------------------------------------------------------------> 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/>-------------------------------------------------------------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:
Here's all I did in WebDNA 4.5. Site has news and events databases. This code searches both and sends up to 15 news stories, followed by as many events as will equal 16 total stories. All the page needs to do is rattle off the proper RSS format and there's lots of validation sites around that will check your code. Fix the domain names and path(s) to your db(s) and you should be good to go.By the way, I get more traffic from RSS than the rest of the site.-----------------------Begin code-------------------------------YOURSITE.comYour Description Here.en-ushttp://www.YOURSITE.com/Copyright 2004, Patrick McCormick Consultingpm@pmconsulting.biz (Patrick McCormick)pm@pmconsulting.biz (Patrick McCormick)http://www.xml.com/http://www.YOURSITE.com/img/rssLogo.gifYOURSITE.com[!]*** -------- Search The News Database -------- ***[/!][search db=db/news.db&geskudata=0&max=15][founditems][math show=F]limit=[numfound][/math]YOURSITE News: [title]http://www.YOURSITE.com/pgs/nws-t01.tpl?sku=[sku][convertchars][grep search=" "&replace= ][content][/grep][/convertchars][/founditems][/search][!]*** -------- Search the Events Database -------- ***[/!][search db=db/events.db&max=[math]16-[limit][/ math]&geevfdatedata=[math]{[date]}[/ math]&asevsdatesort=1&asevtimesort=2&evtimetype=time][founditems]YOURSITE Events: [name]http://www.YOURSITE.com/pgs/cal.tpl?_eqSKUdatarq=[sku][details][/founditems][/search]END CODE-----------------------------------------------------------------On Aug 25, 2004, at 3:50 PM, Phillip Bonesteele wrote:>> Xmlparse and xslt are available in 5.X versions as well.>> John is quite correct, that given knowledge of the RSS feed schema, you> could easily construct a XLS that would pull the various pieces out of> the RSS feed ... You could then easily stuff the results into a DB or a> temporary table if you didn't want to reparse the XML feed on each page> hit.>>> -----Original Message-----> From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com] On Behalf Of> John Peacock> Sent: Wednesday, August 25, 2004 1:17 PM> To: WebDNA Talk> Subject: Re: RSS Feed>> Nitai @ ComputerOil wrote:>>> Thanks, but dont we have the XML parser that could do that?>> Of course, if you are running 6.0, then you can use [xmlparse] and> friends to decode the RSS feed. In that case, I'd suggest you look at> [xsl] to create a style sheet to display the RSS contents via [xslt].>> I still assume most people are not running 6.x yet...>> John>> --> John Peacock> Director of Information Research and Technology Rowman & Littlefield> Publishing Group> 4501 Forbes Boulevard> Suite H> Lanham, MD 20706> 301-459-3366 x.5010> fax 301-429-5748>> -------------------------------------------------------------> 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/>>>> -------------------------------------------------------------> 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/>-------------------------------------------------------------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/
Patrick McCormick
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...