Re: [WebDNA] Passing a text variable via copyfile
This WebDNA talk-list message is from 2019
It keeps the original formatting.
numero = 114907
interpreted = N
texte = 2535> 2) You want [TEXT]name=richard[/TEXT] in the new page (this> is the bit that I am unsure of)If this is what he wants he would already be getting it withhis existing code as long as his companion.html file containsthe code [TEXT]name=richard[/TEXT].But I think what he really wants is a new file that contains"richard". This requires WebDNA to interpret the code in hiscompanion.html template so it can populate the [name] tag.But copyfile does not interpret WebDNA tags:The thing to remember about copyfile is that it invokes theOPERATING SYSTEM to make the copy. Therefore WebDNA is notinvolved in the actual file copying process, and this meansany WebDNA tags in the original file will NOT be interpreted.I could have simplified my previous example code like this:[writefile ../[lowercase][page_name][/lowercase].html][include companion.html][/writefile].... but sometimes creating separate steps in my code makes iteasier to read and understand. Nevertheless this code shouldwork fine if he wants "richard" to appear in the new file.Regards,Kenneth GromeWebDNA Solutionshttp://www.webdnasolutions.comUrgent/Emergency Phone: (228) 222-2917Website, Database, Network, and Communication Systems---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list talk@webdna.usTo unsubscribe, E-mail to: talk-leave@webdna.usarchives: http://www.webdna.us/page.dna?numero=55Bug Reporting: support@webdna.us.
Associated Messages, from the most recent to the oldest:
2535> 2) You want
[text]name=richard[/TEXT] in the new page (this> is the bit that I am unsure of)If this is what he wants he would already be getting it withhis existing code as long as his companion.html file containsthe code
[text]name=richard[/TEXT].But I think what he really wants is a new file that contains"richard". This requires WebDNA to interpret the code in hiscompanion.html template so it can populate the [name] tag.But copyfile does not interpret WebDNA tags:The thing to remember about copyfile is that it invokes theOPERATING SYSTEM to make the copy. Therefore WebDNA is notinvolved in the actual file copying process, and this meansany WebDNA tags in the original file will NOT be interpreted.I could have simplified my previous example code like this:[writefile ../
[lowercase][page_name][/lowercase].html][include companion.html][/writefile].... but sometimes creating separate steps in my code makes iteasier to read and understand. Nevertheless this code shouldwork fine if he wants "richard" to appear in the new file.Regards,Kenneth GromeWebDNA Solutionshttp://www.webdnasolutions.comUrgent/Emergency Phone: (228) 222-2917Website, Database, Network, and Communication Systems---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list talk@webdna.usTo unsubscribe, E-mail to: talk-leave@webdna.usarchives: http://www.webdna.us/page.dna?numero=55Bug Reporting: support@webdna.us.
WebDNA Solutions
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:
Bad Cookie / Internet Option / Internet Explorer (2004)
Sales Tax db (1998)
HELP WITH DATES (1997)
TinyStore Question (1999)
WebCatb15 Mac CGI -- [purchase] (1997)
two unique banners on one page (1997)
No Wanna Duppys (1998)
Locking up with WebCatalog... (1997)
missing records (1998)
Locking up with WebCatalog... (1997)
Problems appending to database (1997)
Code database (1998)
Search returns all, not 20 (1997)
Help! WebCat2 bug (1997)
Can't load tmpl files (1997)
Bulletin Board (1998)
writing db to disk (1997)
question: webdelivery folder and file (1997)
More on the email templates (I like it) (1997)
Prepaid monthly subscription order fulfillment question (2004)