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 with his existing code as long as his companion.html file contains the 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 his companion.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 the OPERATING SYSTEM to make the copy. Therefore WebDNA is not involved in the actual file copying process, and this means any 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 it easier to read and understand. Nevertheless this code should work fine if he wants "richard" to appear in the new file. Regards, Kenneth Grome WebDNA Solutions http://www.webdnasolutions.com Urgent/Emergency Phone: (228) 222-2917 Website, Database, Network, and Communication Systems --------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=55 Bug Reporting: support@webdna.us . Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Passing a text variable via copyfile (Rich Kwas 2019)
  2. Re: [WebDNA] Passing a text variable via copyfile (WebDNA Solutions 2019)
  3. Re: [WebDNA] Passing a text variable via copyfile (Rich Kwas 2019)
  4. Re: [WebDNA] Passing a text variable via copyfile (Stuart Tremain 2019)
  5. RE: [BULK] Re: [WebDNA] Passing a text variable via copyfile ("Terry Nair" 2019)
  6. [BULK] Re: [WebDNA] Passing a text variable via copyfile (Rich Kwas 2019)
  7. RE: [WebDNA] Passing a text variable via copyfile ("Terry Nair" 2019)
  8. Re: [WebDNA] Passing a text variable via copyfile (Rich Kwas 2019)
  9. Re: [WebDNA] Passing a text variable via copyfile (WebDNA Solutions 2019)
  10. Re: [WebDNA] Passing a text variable via copyfile (Rich Kwas 2019)
  11. RE: [WebDNA] Passing a text variable via copyfile ("Scott @ Itsula" 2019)
  12. Re: [WebDNA] Passing a text variable via copyfile (Rich Kwas 2019)
  13. RE: [WebDNA] Passing a text variable via copyfile ("Scott @ Itsula" 2019)
  14. Re: [WebDNA] Passing a text variable via copyfile (Rich Kwas 2019)
  15. Re: [WebDNA] Passing a text variable via copyfile (WebDNA Solutions 2019)
  16. [WebDNA] Passing a text variable via copyfile (Richard Kwasniewski 2019)
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 with his existing code as long as his companion.html file contains the 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 his companion.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 the OPERATING SYSTEM to make the copy. Therefore WebDNA is not involved in the actual file copying process, and this means any 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 it easier to read and understand. Nevertheless this code should work fine if he wants "richard" to appear in the new file. Regards, Kenneth Grome WebDNA Solutions http://www.webdnasolutions.com Urgent/Emergency Phone: (228) 222-2917 Website, Database, Network, and Communication Systems --------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=55 Bug 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:

WebCAT MacOS9 --> OSX (2003) [WebDNA] Date: header on emails - timezone problem perhaps (2010) ShipCosts database (1997) PLEASE REMOVE MY EMAIL ADDRESS (1997) form data submission gets truncated (1997) Help Encrypt/Decrypt eMail (2003) protect tag on NT (1997) Menu to select product variations (1997) Searching for all records (1998) math problems (2000) [Reload mydata.db] (1998) price on detail, but not shoppingcart (1997) Download Question (1997) Nested tags count question (1997) Carrying over data? (1997) Separate SSL Server (1997) webcat- multiple selection in input field (1997) searchable list archive (1997) file uploads with webcat...binary? (1998) re: sorting and summarizing (1998)