Re: [WebDNA] Passing a text variable via copyfile

This WebDNA talk-list message is from

2019


It keeps the original formatting.
numero = 114908
interpreted = N
texte = 2536 ------=_Part_3003064_314266482.1570456715159 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Thats what I ultimately determined. Using [copyfile] was not the way to go... been a while since I needed to do something like this and [copyfile] seemed the simplest way to create a page based on a template. [writefile] did all I needed, passing the variable to become a text variable on the new page created etc. On Monday, October 7, 2019, 08:22:02 AM CDT, WebDNA Solutions wrote: > 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 ------=_Part_3003064_314266482.1570456715159 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thats what I ultimately dete= rmined.

Using [copyfile] was not the way to go... been a = while since I needed to do something like this and [copyfile] seemed the si= mplest way to create a page based on a template.

[writefi= le] did all I needed, passing the variable to become a text variable on the= new page created etc.



=20
=20
On Monday, October 7, 2019, 08:22:02 AM CDT, WebDNA Sol= utions <ken@webdnasolutions.com> wrote:


> 2) You want [TEXT]name=3Drichard= [/TEXT] in the new page (this
> is the bit that I am u= nsure of)

If this is what he wants he = would already be getting it with
his existing code as lon= g as his companion.html file contains
the code [TEXT]name= =3Drichard[/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.h= tml template so it can populate the [name] tag.
But copyf= ile does not interpret WebDNA tags:

Th= e 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 c= ode like this:

[writefile ../[lowercas= e][page_name][/lowercase].html]
[include companion.html]<= br clear=3D"none">[/writefile]

... but= sometimes creating separate steps in my code makes it
ea= sier 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=3D55 Bug Reporting: support@webdna.us ------=_Part_3003064_314266482.1570456715159-- . 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)
2536 ------=_Part_3003064_314266482.1570456715159 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Thats what I ultimately determined. Using [copyfile] was not the way to go... been a while since I needed to do something like this and [copyfile] seemed the simplest way to create a page based on a template. [writefile] did all I needed, passing the variable to become a text variable on the new page created etc. On Monday, October 7, 2019, 08:22:02 AM CDT, WebDNA Solutions wrote: > 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 ------=_Part_3003064_314266482.1570456715159 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thats what I ultimately dete= rmined.

Using [copyfile] was not the way to go... been a = while since I needed to do something like this and [copyfile] seemed the si= mplest way to create a page based on a template.

[writefi= le] did all I needed, passing the variable to become a text variable on the= new page created etc.



=20
=20
On Monday, October 7, 2019, 08:22:02 AM CDT, WebDNA Sol= utions <ken@webdnasolutions.com> wrote:


> 2) You want [text]name=3Drichard= [/TEXT] in the new page (this
> is the bit that I am u= nsure of)

If this is what he wants he = would already be getting it with
his existing code as lon= g as his companion.html file contains
the code [text]name= =3Drichard[/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.h= tml template so it can populate the [name] tag.
But copyf= ile does not interpret WebDNA tags:

Th= e 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 c= ode like this:

[writefile ../[lowercas= e][page_name][/lowercase].html]
[include companion.html]<= br clear=3D"none">[/writefile]

... but= sometimes creating separate steps in my code makes it
ea= sier 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=3D55 Bug Reporting: support@webdna.us ------=_Part_3003064_314266482.1570456715159-- . Rich Kwas

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:

HTML text cannot be copied to clipboard? (1999) Some Questions (1997) Modifying databases manually (was Banner DNA) (1997) WebCatalog for guestbook ? (1997) Can't get appendfile to work (1997) Migrating to NT (1997) AJAX with WebDNA (2006) Location of Browser Info.txt file (1997) Creating a back button (1999) [WebDNA] Moving to Sandbox broke price (2009) $Quit, $CloseDatabase corrections (1997) unix permissions for 4.0 (2000) [writefile] (1997) Major Security Hole IIS NT (1998) Summary layout (1997) Limit to variables being passed??? (1998) Error Lob.db records error message not name (1997) Sort Order on a page search (1997) [math] with first letter in field? (1997) Setting up shop (1997)