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
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
DOWNLOAD WEBDNA NOW!
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...