Re: writefile to create static pages
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 50094
interpreted = N
texte = I would bet there is some error causing the page to not display. If the pages get written, there has got to be another problem.Can you post more of the code on the page? Link to the live page?- CharlesOn Tuesday, May 6, 2003, at 10:51 PM, Lester Emo wrote:> I've hardly used writefile so i may be just doing this all wrong . . .>> I want to create static pages from a database of stuff that's shown as > needed.> Content doesn't change that often on this database of items>> I added the following to my listing.tpl page which is the page that is > shown to the user in a browser on the live website>> [Search db=^eg/eg.db&eqSKUdatarq=[ID]]> [Founditems]>> [writefile [sku].htm]> ( all the normal listing.tpl page template stuff is here )> [/writefile]>> [/Founditems]> [/Search]>>>> this seems to work fine.>> I get my [sku].htm page written with all the right stuff within it.>> BUT> I can't see the page as i would normally see on the website without > the [writefile] added> a blank screen> nothing>> Is this not a good way to do this?> Have the [writefile] in a live web template?>> Is that what's causing the listing.tpl template to not be shown>> Is there a better way to make static pages from a database?>> IIS and NT and vers. 4.5 is what i'm using . . .>> thanks>>>>>>>>>>> -------------------------------------------------------------> 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:
I would bet there is some error causing the page to not display. If the pages get written, there has got to be another problem.Can you post more of the code on the page? Link to the live page?- CharlesOn Tuesday, May 6, 2003, at 10:51 PM, Lester Emo wrote:> I've hardly used writefile so i may be just doing this all wrong . . .>> I want to create static pages from a database of stuff that's shown as > needed.> Content doesn't change that often on this database of items>> I added the following to my listing.tpl page which is the page that is > shown to the user in a browser on the live website>> [Search db=^eg/eg.db&eqSKUdatarq=[ID]]> [founditems]>> [writefile [sku].htm]> ( all the normal listing.tpl page template stuff is here )> [/writefile]>> [/Founditems]> [/Search]>>>> this seems to work fine.>> I get my [sku].htm page written with all the right stuff within it.>> BUT> I can't see the page as i would normally see on the website without > the [writefile] added> a blank screen> nothing>> Is this not a good way to do this?> Have the [writefile] in a live web template?>> Is that what's causing the listing.tpl template to not be shown>> Is there a better way to make static pages from a database?>> IIS and NT and vers. 4.5 is what i'm using . . .>> thanks>>>>>>>>>>> -------------------------------------------------------------> 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/
Charles Kline
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:
E-Mail (1998)
sendmail spaces (1997)
FlushDatabase Suggestion (1998)
The USArea® Network web site ... (1997)
counting characters and/or words (1997)
Looping (2000)
New Plug-in and Type 11 errors (1997)
Ignoring [OrderFile] context (2005)
[delete] problem (1997)
Protect and Serve (1999)
Appending current [date] to a database (1997)
WebCat2b15MacPlugin - [protect] (1997)
Validation (2000)
Re:no [search] with NT (1997)
SET (1998)
Problems with [Search] param - Mac Plugin b15 (1997)
info (1997)
Associative lookup style? (1997)
FYI: virus alert (1996)
autocommit problem (1998)