[ZDP] BackTalk to Document The Zope Book (2.5 Edition)/Advanced Page Templates

webmaster@zope.org webmaster@zope.org
Wed, 25 Sep 2002 18:41:01 -0400


A comment to the paragraph below was recently added via http://www.zope.org/Documentation/Books/ZopeBook/current/AdvZPT.stx#3-12

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

      The 'tal:define' statement creates the variable 'items', which
      you can use it anywhere in the 'ul' tag.  Notice also how you
      can have two TAL statement on the same 'ul' tag.  See the
      section, "Interactions Between TAL Statements" later in this
      chapter for more information about using more than one statement
      on a tag.  In this case the first statement assigns the variable
      'items' and the second uses 'items' in a condition to see
      whether or not it is false (in this case, an empty sequence) or
      true. If the 'items' variable is false, then the 'ul' tag is not
      shown.

        % Anonymous User - Apr. 12, 2002 6:32 pm:
         typo
         ...which you can use it anywhere in the ul...
         s/it//

        % Anonymous User - Apr. 12, 2002 6:34 pm:
         typo
         ...have two TAL statement on the...
         s/statement/statements/

        % Anonymous User - Sep. 25, 2002 6:40 pm:
         Two TAL statements on one HTML tag were used already in subsection "Inserting Structure" above. 
         Thwe first mention was in Chapter 5, Section Creating a File Library with Page Templates
         (why dont have the sections numbers and hrefs also?)
         in the example 

         <a href="Sample.tgz" class="filename"
                  tal:attributes="href item/getId"
                  tal:content="item/getId">

         Rather late for even noticing this feature of ZPTs! And even here yet another forward reference. Complete
         customer neglect. blf