How can you add "<dtml-var standard_header>" by default(like newly created dtml method or doc in zope) to a newly created document made my a form. When they create a document using the form I want <dtml-var standard_header> to be included in the top of the body. I tried <textarea><dtml-var standard_header></textarea> thinking it would work, but what resulted was not what i intened,instead i got the values in the variable, which makes perfect sense, now that I think of it. thanks ahead! -jon
At 05:11 PM 4/24/00 -0400, you wrote:
How can you add "<dtml-var standard_header>" by default(like newly created dtml method or doc in zope) to a newly created document made my a form.
Just use the given <dtml-var standard_html_header>. It works just fine. Just create a method of this name in you root folder and you are ready to Rock and Roll. Regards, Stephan -- Stephan Richter - (901) 573-3308 - srichter@cbu.edu CBU - Physics & Chemistry; Framework Web - Web Design & Development PGP Key: 735E C61E 5C64 F430 4F9C 798E DCA2 07E3 E42B 5391
Jonathan Park wrote:
How can you add "<dtml-var standard_header>" by default(like newly created dtml method or doc in zope) to a newly created document made my a form.
When they create a document using the form I want <dtml-var standard_header> to be included in the top of the body.
What I did is just made a document template that is a DTML document like this: <dtml-var standard_html_header> <dtml-var content> <dtml-var standard_html_footer> then I use manage_changeProperties to change the value of the content property. does that help? -- ethan mindlace fremen mindlace@imeme.net zope -&- imap email -&- mailing list weave your web with the web at http://imeme.net
Hi Jonathan, Jonathan Park wrote:
How can you add "<dtml-var standard_header>" by default(like newly created dtml method or doc in zope) to a newly created document made my a form.
(where is the question-mark? ;)
When they create a document using the form I want <dtml-var standard_header> to be included in the top of the body.
I tried <textarea><dtml-var standard_header></textarea> thinking it would work, but what resulted was not what i intened,instead i got the values in the variable, which makes perfect sense, now that I think of it.
Just try: <textarea><dtml-var "'<dtml-var standard_header>'"></textarea> to prevent Zope from touching the string with the parser. HTH Tino Wildenhain
Thank you very much! -jon -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Tino Wildenhain Sent: Tuesday, April 25, 2000 4:15 AM To: Jonathan Park; Zope@zope.org Subject: Re: [Zope] newbie zope ? <dtml-var standard_header> Hi Jonathan, Jonathan Park wrote:
How can you add "<dtml-var standard_header>" by default(like newly created dtml method or doc in zope) to a newly created document made my a form.
(where is the question-mark? ;)
When they create a document using the form I want <dtml-var standard_header> to be included in the top of the body.
I tried <textarea><dtml-var standard_header></textarea> thinking it would work, but what resulted was not what i intened,instead i got the values in the variable, which makes perfect sense, now that I think of it.
Just try: <textarea><dtml-var "'<dtml-var standard_header>'"></textarea> to prevent Zope from touching the string with the parser. HTH Tino Wildenhain _______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Hi Tino, I forgot the question mark. :) It won't happen again. ;) Thank you for your kind help! Have a great day! -jon -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Tino Wildenhain Sent: Tuesday, April 25, 2000 4:15 AM To: Jonathan Park; Zope@zope.org Subject: Re: [Zope] newbie zope ? <dtml-var standard_header> Hi Jonathan, Jonathan Park wrote:
How can you add "<dtml-var standard_header>" by default(like newly created dtml method or doc in zope) to a newly created document made my a form.
(where is the question-mark? ;)
When they create a document using the form I want <dtml-var standard_header> to be included in the top of the body.
I tried <textarea><dtml-var standard_header></textarea> thinking it would work, but what resulted was not what i intened,instead i got the values in the variable, which makes perfect sense, now that I think of it.
Just try: <textarea><dtml-var "'<dtml-var standard_header>'"></textarea> to prevent Zope from touching the string with the parser. HTH Tino Wildenhain _______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
participants (4)
-
Jonathan Park -
mindlace -
Stephan Richter -
Tino Wildenhain