[ZDP] BackTalk to Document The Zope Book (2.5 Edition)/Using Basic Zope Objects
nobody@nowhere.com
nobody@nowhere.com
Fri, 20 Sep 2002 17:51:12 -0400
A comment to the paragraph below was recently added via http://www.zope.org/Documentation/Books/ZopeBook/current/BasicObject.stx#2-69
---------------
A simple example of using DTML Methods is to create a DTML Method in
the root folder called *objectList*::
<dtml-var standard_html_header>
<ul>
<dtml-in objectValues>
<li><dtml-var getId></li>
</dtml-in>
</ul>
<dtml-var standard_html_footer>
% kaleissin - May 16, 2002 2:01 pm:
DTML Methods are much more handy than DTML Documents, which sometimes behave folderishly or in similarly
unexpected ways
% Anonymous User - July 25, 2002 5:25 pm:
I am still confused with DTML document and DTML method. What is the main difference?
% Anonymous User - Aug. 31, 2002 3:23 am:
There is a section which compares DTML documents/methods further down.
% hansa - Sep. 20, 2002 5:51 pm:
Again a bad example. Better use a breadcrumbs method.
Something having both a *_header and *_footer i would use as DTML Document.
From which templates should this be called?
To which objects should this method apply?
Is this an index_html?
A DTML Method doesnt have properties (like title), but acquires them from caller.