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:

Help! (2000) Opinion: [input] should be called [output] ... (1997) Two submit buttons ? (1997) What's wrong with this replace? (2002) when to use SQL over webcat? (2000) [ot] g5 xserve drives (2004) Simple search, perhaps (2002) serial number not working (1998) WebCatalog featured at Internet World LA... (2000) 'does not contain' operator needed ... (1997) Migrating to NT (1997) WC2b15 - [HTMLx]...[/HTMLx] problems (1997) [isfile] ? (1997) Latin character entities (2007) [WebDNA] OT: How is this being done? Curious. (2009) I'm new be kind (1997) Subtotal Not Calculated on Invoice.html (1998) gateway application timeouts (1998) listfiles shows invisible files ... (1999) Loops and [index] (1998)