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

[email protected]
Newsgroups gmane.comp.web.zope.zdp
Message-ID <[email protected]>
A comment to the paragraph below was recently added via http://zope.org/Documentation/Books/ZopeBook/2_6Edition/ZPT.stx#2-34

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

    Now let's add some context to your 'simple_page' template, in the
    form of a list of the objects that are in the same Folder as the
    template.  You will make a table that has a numbered row for each
    object, and columns for the id, meta-type, and title.  Add these
    lines to the bottom of your example template::

      <table border="1" width="100%">
        <tr>
          <th>Number</th>
          <th>Id</th>
          <th>Meta-Type</th>
          <th>Title</th>
        </tr>
        <tr tal:repeat="item container/objectValues">
          <td tal:content="repeat/item/number">#</td>
          <td tal:content="item/getId">Id</td>
          <td tal:content="item/meta_type">Meta-Type</td>
          <td tal:content="item/title">Title</td>
        </tr>
      </table>

      % Anonymous User - Dec. 22, 2003 11:01 am:
       ERROR! should read "td tal:content="item/number">#</td>

      % Anonymous User - Dec. 27, 2003 12:33 am:
       No, actually it should read exactly what it says there.
       The explanation for why it should have the "repeat/" before it is quite bad, though.

_______________________________________________
ZDP maillist  -  [email protected]
http://mail.zope.org/mailman/listinfo/zdp
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.