[ZDP] BackTalk to Document The Zope Book (2.6 Edition)/Using Zope Page Templates

webmaster at zope.org webmaster at zope.org
Thu Dec 11 08:10:24 EST 2003


A comment to the paragraph below was recently added via http://zope.org/Documentation/Books/ZopeBook/2_6Edition/ZPT.stx#2-87

---------------

    Create a new Page Template called "entries.xml" in your guest book
    folder with the following contents::

      <guestbook xmlns:tal="http://xml.zope.org/namespaces/tal">
        <entry tal:repeat="entry python:here.objectValues('DTML Document')">
          <comments tal:content="entry/document_src">Comment goes here...</comments>
        </entry>
      </guestbook>

      % snell - Dec. 11, 2003 8:10 am:
       Is this section on Page Templates and TAL?
       Note: objectValues('DTML Document'). Replace that with objectValues('Page Templates') as by rights one
       should, and you get a very different result. And who knows how to clean it up?



More information about the ZDP mailing list