RE: [WebDNA] Passing a text variable via copyfile

This WebDNA talk-list message is from

2019


It keeps the original formatting.
numero = 114902
interpreted = N
texte = 2530 This is a multipart message in MIME format. ------=_NextPart_000_0030_01D57CF3.A96FEF00 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Check to see if there are any showif and hideif issues as well. Any = missing tag brackets to. =20 Cheers TDn =20 From: Rich Kwas =20 Sent: Monday, October 07, 2019 08:41 AM To: talk@webdna.us Subject: Re: [WebDNA] Passing a text variable via copyfile =20 Ken, [writefile] is doing everything I want in regards to passing along = that [name] variable from the form entry that is being used to create = the page. The [page_name} was always coming across just fine. I just = needed to embed a [name] as a text variable on the new page created. =20 I'm using [writefile] but have an error that's puzzling be appearing t = the bottom of the created page using [writefile] =20 =20 This is the beginning of the [writefile] code: =20 [writefile ../[lowercase][page_name][/lowercase].html] =20 =20 ( the rest of the html code here with a few items wrapped with = [raw][/raw] that I do not want processed by webdna during [writefile] ) =20 [/writefile] =20 =20 BUT =20 I keep getting this error at the bottom of the newly created page: =20 Error: Error: expected [/IF], but found [/writefile] = instead[/writefile] =20 =20 I have no [if] [then] code anywhere on the html being used in =20 [writefile] my html page code [/writefile] =20 I've searched for all instances of writefile and there are only 2 as = I've referenced above. =20 =20 What could be causing that error line? =20 =20 =20 On Sunday, October 6, 2019, 02:44:31 PM CDT, WebDNA Solutions = > wrote:=20 =20 =20 Richard, Your append context is fine as originally written, but you need to use this code instead of your copyfile code: [text]theNewFileContent=3D[include companion.html][/text] [writefile ../[lowercase][page_name][/lowercase].html] [theNewFileContent] [/writefile] If this doesn't work you'll need to modify the code in your "companion.html" file ... but test this first and see if it works, because it probably will. 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 =20 To unsubscribe, E-mail to: talk-leave@webdna.us = =20 archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: support@webdna.us =20 --------------------------------------------------------- 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 =20 ------=_NextPart_000_0030_01D57CF3.A96FEF00 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Check to see = if there are any showif and hideif issues as well. Any missing tag = brackets to.

 

Cheers = TDn

 

From:<= /b> = Rich Kwas <richkwasniewski@yahoo.com>
Sent: Monday, = October 07, 2019 08:41 AM
To: = talk@webdna.us
Subject: Re: [WebDNA] Passing a text variable = via copyfile

 

Ken, [writefile] is doing = everything I want in regards to passing along that [name] variable from = the form entry that is being used to create the page. The [page_name} = was always coming across just fine. I just needed to embed a [name] as a = text variable on the new page = created.

 

=

I'm using [writefile] but = have an error that's puzzling be appearing t the bottom of the created = page using [writefile]

 

=

 

=

This is the beginning of = the [writefile] code:

 

=

[writefile = .../[lowercase][page_name][/lowercase].html]

 

=

<!DOCTYPE = html>

<html>

  = <head>

    <meta = charset=3D"utf-8">

    <meta = name=3D"viewport" content=3D"width=3Ddevice-width, = initial-scale=3D1, maximum-scale=3D1, = user-scalable=3Dno">

    <meta = name=3D"description" = content=3D"">

    <meta = name=3D"author" = content=3D"">

 

=

( the rest of the html code = here with a few items wrapped with [raw][/raw] that I do not want = processed by webdna during [writefile] = )

 

=

[/writefile]

 

=

 

=

BUT

 

=

I keep getting this error = at the bottom of the newly created = page:

 

=

      Error: = Error: expected [/IF], but found [/writefile] = instead[/writefile]

 

=

 

=

I have no [if] [then] code = anywhere on the html being used in

    =  

      = [writefile] my html page code = [/writefile]

 

=

I've searched for all = instances of writefile and there are only 2 as I've referenced = above.

 

=

 

=

What could be causing that = error line?

 

=

 

=

 

=

On Sunday, October 6, 2019, 02:44:31 PM CDT, WebDNA Solutions <ken@webdnasolutions.com> = wrote:

 

 

Richard,

Your append context is fine as originally written, = but you
need to use this code instead of your copyfile = code:

[text]theNewFileContent=3D[include = companion.html][/text]

[writefile = .../[lowercase][page_name][/lowercase].html]
[theNewFileContent]
[/w= ritefile]

If this doesn't work you'll need to modify the code in = your
"companion.html" file ... but test this first and see = if it
works, because it probably will.

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
=

-------------------------------------------------------= -- 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/p= age.dna?numero=3D55 Bug Reporting: support@webdna.us

--------------------------------------------------------- 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 ------=_NextPart_000_0030_01D57CF3.A96FEF00-- . 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)
2530 This is a multipart message in MIME format. ------=_NextPart_000_0030_01D57CF3.A96FEF00 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Check to see if there are any showif and hideif issues as well. Any = missing tag brackets to. =20 Cheers TDn =20 From: Rich Kwas =20 Sent: Monday, October 07, 2019 08:41 AM To: talk@webdna.us Subject: Re: [WebDNA] Passing a text variable via copyfile =20 Ken, [writefile] is doing everything I want in regards to passing along = that [name] variable from the form entry that is being used to create = the page. The [page_name} was always coming across just fine. I just = needed to embed a [name] as a text variable on the new page created. =20 I'm using [writefile] but have an error that's puzzling be appearing t = the bottom of the created page using [writefile] =20 =20 This is the beginning of the [writefile] code: =20 [writefile ../[lowercase][page_name][/lowercase].html] =20 =20 ( the rest of the html code here with a few items wrapped with = [raw][/raw] that I do not want processed by webdna during [writefile] ) =20 [/writefile] =20 =20 BUT =20 I keep getting this error at the bottom of the newly created page: =20 Error: Error: expected [/IF], but found [/writefile] = instead[/writefile] =20 =20 I have no [if] [then] code anywhere on the html being used in =20 [writefile] my html page code [/writefile] =20 I've searched for all instances of writefile and there are only 2 as = I've referenced above. =20 =20 What could be causing that error line? =20 =20 =20 On Sunday, October 6, 2019, 02:44:31 PM CDT, WebDNA Solutions = > wrote:=20 =20 =20 Richard, Your append context is fine as originally written, but you need to use this code instead of your copyfile code: [text]theNewFileContent=3D[include companion.html][/text] [writefile ../[lowercase][page_name][/lowercase].html] [theNewFileContent] [/writefile] If this doesn't work you'll need to modify the code in your "companion.html" file ... but test this first and see if it works, because it probably will. 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 =20 To unsubscribe, E-mail to: talk-leave@webdna.us = =20 archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: support@webdna.us =20 --------------------------------------------------------- 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 =20 ------=_NextPart_000_0030_01D57CF3.A96FEF00 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Check to see = if there are any showif and hideif issues as well. Any missing tag = brackets to.

 

Cheers = TDn

 

From:<= /b> = Rich Kwas <richkwasniewski@yahoo.com>
Sent: Monday, = October 07, 2019 08:41 AM
To: = talk@webdna.us
Subject: Re: [WebDNA] Passing a text variable = via copyfile

 

Ken, [writefile] is doing = everything I want in regards to passing along that [name] variable from = the form entry that is being used to create the page. The [page_name} = was always coming across just fine. I just needed to embed a [name] as a = text variable on the new page = created.

 

=

I'm using [writefile] but = have an error that's puzzling be appearing t the bottom of the created = page using [writefile]

 

=

 

=

This is the beginning of = the [writefile] code:

 

=

[writefile = .../[lowercase][page_name][/lowercase].html]

 

=

<!DOCTYPE = html>

<html>

  = <head>

    <meta = charset=3D"utf-8">

    <meta = name=3D"viewport" content=3D"width=3Ddevice-width, = initial-scale=3D1, maximum-scale=3D1, = user-scalable=3Dno">

    <meta = name=3D"description" = content=3D"">

    <meta = name=3D"author" = content=3D"">

 

=

( the rest of the html code = here with a few items wrapped with [raw][/raw] that I do not want = processed by webdna during [writefile] = )

 

=

[/writefile]

 

=

 

=

BUT

 

=

I keep getting this error = at the bottom of the newly created = page:

 

=

      Error: = Error: expected [/IF], but found [/writefile] = instead[/writefile]

 

=

 

=

I have no [if] [then] code = anywhere on the html being used in

    =  

      = [writefile] my html page code = [/writefile]

 

=

I've searched for all = instances of writefile and there are only 2 as I've referenced = above.

 

=

 

=

What could be causing that = error line?

 

=

 

=

 

=

On Sunday, October 6, 2019, 02:44:31 PM CDT, WebDNA Solutions <ken@webdnasolutions.com> = wrote:

 

 

Richard,

Your append context is fine as originally written, = but you
need to use this code instead of your copyfile = code:

[text]theNewFileContent=3D[include = companion.html][/text]

[writefile = .../[lowercase][page_name][/lowercase].html]
[theNewFileContent]
[/w= ritefile]

If this doesn't work you'll need to modify the code in = your
"companion.html" file ... but test this first and see = if it
works, because it probably will.

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
=

-------------------------------------------------------= -- 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/p= age.dna?numero=3D55 Bug Reporting: support@webdna.us

--------------------------------------------------------- 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 ------=_NextPart_000_0030_01D57CF3.A96FEF00-- . "Terry Nair"

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:

Date Sorting (1997) [input] [/input] (1997) [include file=filename.inc&strip=t] (2002) multiple search commands (1997) Going to anchors within a template page (1997) WebCat2 beta 11 - new prefs ... (1997) color and size options / ARCHIVES (1997) Problems with [Search] param - Mac Plugin b15 (1997) Public beta 2 for WebCatalog 4.0 is now available. (2000) Weather (2003) back button problem (1999) request for string functions (1998) [orderfile Orders/[cart]] (2000) Error - Search / Showif (2000) [foundItems] context problem (2000) bull, f**k (1998) Document Contains No Data, Blank Pages with b4, b6 mac! (1999) Protecting webdelivery (1997) More on the email templates (I like it) (1997) Database Helper (1998)