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 an include file, that way you don't need to re-write the html head and foot each time.basically you do a normal search, then your founditems loop and then the writefile as you want it to write the info for each matching record.It (for me) sometimes takes trying it a couple of times to get things exactly right :)remember that if you want special formatting (like a table) around the fields you are writing out, you need to include that within the writefile context. Basically you are building the entire page, or section of the page with all content you wish to display later.Dale On 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:

    
  1. Re: Read and Write (Velma Kahn 2001)
  2. Re: Read and Write (Sam Lewis 2001)
  3. Re: Read and Write (Dale Therio 2001)
  4. Re: Read and Write (Velma Kahn 2001)
  5. Re: Read and Write (John Peacock 2001)
  6. Re: Read and Write (Glenn Busbin 2001)
  7. Read and Write (Velma Kahn 2001)
  8. Re: Read and Write (Anup Setty 2001)
  9. Re: read and write you own cookies with webcat (Sandra L. Pitner 1997)
  10. Re: read and write you own cookies with webcat (Kenneth Grome 1997)
  11. Re: read and write you own cookies with webcat (Olin 1997)
  12. Re: read and write you own cookies with webcat (Kenneth Grome 1997)
  13. Re: read and write you own cookies with webcat (Sandra L. Pitner 1997)
  14. Re: read and write you own cookies with webcat (Olin 1997)
  15. Re: read and write you own cookies with webcat (Sandra L. Pitner 1997)
  16. Re: read and write you own cookies with webcat (Grant Hulbert 1997)
  17. Re: read and write you own cookies with webcat (Sandra L. Pitner 1997)
  18. read and write you own cookies with webcat (Olin 1997)
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 an include file, that way you don't need to re-write the html head and foot each time.basically you do a normal search, then your founditems loop and then the writefile as you want it to write the info for each matching record.It (for me) sometimes takes trying it a couple of times to get things exactly right :)remember that if you want special formatting (like a table) around the fields you are writing out, you need to include that within the writefile context. Basically you are building the entire page, or section of the page with all content you wish to display later.Dale On 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)