[ZDP] BackTalk to Document The Zope Book (2.5 Edition)/Creating Basic Zope Applications
webmaster@zope.org
webmaster@zope.org
Sun, 22 Sep 2002 11:57:42 -0400
A comment to the paragraph below was recently added via http://www.zope.org/Documentation/Books/ZopeBook/current/SimpleExamples.stx#3-67
---------------
Now create an *addEntryAction* DTML Method in the *GuestBook* folder to
handle the form. This form will create a new entry document and return
a confirmation message::
<dtml-var standard_html_header>
<dtml-call expr="addEntry(guest_name, comments)">
<h1>Thanks for signing our guest book!</h1>
<p><a href="<dtml-var URL1>">Return</a>
to the guest book.</p>
<dtml-var standard_html_footer>
% Anonymous User - May 9, 2002 4:48 pm:
URL1? Not working for me!?
% Anonymous User - June 3, 2002 2:24 am:
I've tried to send some comments to the guestbook, files of comments have been created but those comments
didn't list out like the above pic.
% Anonymous User - June 13, 2002 5:01 am:
is it possible to send the form data straight to the form and then return to the guestbook page with the
validated entry?
% Anonymous User - July 3, 2002 11:21 am:
To the second anonymous user who couldn't get the files to list out: I had this problem too. The
documentation doesn't specify, but index_html should be a DTML METHOD - not a DTML DOCUMENT! What a
ridiculous pile of
% krump - Aug. 27, 2002 1:24 pm:
In all fairness he has been using 'method' as a synonym for 'DTMLmethod' for a while. It can be easy to miss
though.
% Anonymous User - Sep. 22, 2002 11:50 am:
Consistency: dont forget dtml tag syntax!
% Anonymous User - Sep. 22, 2002 11:57 am:
1) dtml-call was not treated in previous chapters
(it does not insert anything in the output, only evaluates expr)
2) how about
<dtml-call expr="addEntry(guest_name=guest_name, comments=comments)">
As a newbie i hav difficulty understanding the parameter passing rules.