Re: Read and Write
This WebDNA talk-list message is from 2001
It keeps the original formatting.
numero = 38985
interpreted = N
texte = Velma,It is very early, so not thinking 100% here, but...[search...][founditems][writefile]html stuff here[fieldname1][fieldname2][fieldname...][/writefile][/founditems][/search]you can also, if it meets your needs, write the data out to aninclude file, that way you don't need to re-write the html headand foot each time.basically you do a normal search, then your founditems loop andthen the writefile as you want it to write the info for eachmatching record.It (for me) sometimes takes trying it a couple of times to getthings exactly right :)remember that if you want special formatting (like a table)around the fields you are writing out, you need to include thatwithin the writefile context. Basically you are building theentire page, or section of the page with all content you wish todisplay later.DaleOn Mon, 01 Oct 2001 20:58:41 Velma Kahn
wrote:> Velma Kahn:> >I need to read some tpl files and save them (the resulting> HTML) to static > >HTML files. How might I do this?> > Glenn Busbin:> >Use Writefile to write the info, not copy it, to the static> files. It > >should solve both probs.> > John Peacock:> >[writefile] is your friend here.> > Thank you. I am missing some key piece of information.> Suppose I have a > table with two fields, an input filename (which is a URL to a> tpl file), > and an output filename (which is a URL to an htm file). I> know how to do a > search, and a founditems loop. Within that founditems loop,> what would the > code look like to read the input file (processing it through> WebCatalog, > but hopefully not displaying it), and write the output file> with > [writefile]? Perhaps a line of sample code would make a> lightbulb go off > here. :)> > Velma Kahn-------------------------------------------------------------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://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Velma,It is very early, so not thinking 100% here, but...[search...][founditems][writefile]html stuff here[fieldname1][fieldname2][fieldname...][/writefile][/founditems][/search]you can also, if it meets your needs, write the data out to aninclude file, that way you don't need to re-write the html headand foot each time.basically you do a normal search, then your founditems loop andthen the writefile as you want it to write the info for eachmatching record.It (for me) sometimes takes trying it a couple of times to getthings exactly right :)remember that if you want special formatting (like a table)around the fields you are writing out, you need to include thatwithin the writefile context. Basically you are building theentire page, or section of the page with all content you wish todisplay later.DaleOn Mon, 01 Oct 2001 20:58:41 Velma Kahn wrote:> Velma Kahn:> >I need to read some tpl files and save them (the resulting> HTML) to static > >HTML files. How might I do this?> > Glenn Busbin:> >Use Writefile to write the info, not copy it, to the static> files. It > >should solve both probs.> > John Peacock:> >[writefile] is your friend here.> > Thank you. I am missing some key piece of information.> Suppose I have a > table with two fields, an input filename (which is a URL to a> tpl file), > and an output filename (which is a URL to an htm file). I> know how to do a > search, and a founditems loop. Within that founditems loop,> what would the > code look like to read the input file (processing it through> WebCatalog, > but hopefully not displaying it), and write the output file> with > [writefile]? Perhaps a line of sample code would make a> lightbulb go off > here. :)> > Velma Kahn-------------------------------------------------------------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://search.smithmicro.com/
Dale Therio
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:
WebCat2b13MacPlugin - [math][date][/math] problem (1997)
Country & Ship-to address & other fields ? (1997)
Hiring: Web programmer in Seattle area (2000)
PIXO support (1997)
Date calculation problems (1997)
No. of items in shopping cart (2000)
shippingTotal Challenge (2001)
help:permanent defaults set up is wrong on osx server1.2 (2001)
Apple event reply error (-1) (1997)
oops private message leaked into talk list (1997)
why is this line in GeneralStore? (1998)
Search Questions (2000)
Suffix Mapping (1997)
Phonetic Search (2001)
simple answer? [hideif] (1997)
CMS - Formatting Content (2004)
Bug? (1997)
Using Plug-In while running 1.6.1 (1997)
webten vs. webstar (1998)
Requiring that certain fields be completed (1997)