[ZDP] BackTalk to Document The Zope Book (2.6 Edition)/Basic DTML

webmaster at zope.org webmaster at zope.org
Mon Dec 22 09:48:49 EST 2003


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

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

      Suppose we're running a special. First time zoo visitors get in
      for half price. Here's a DTML fragment that tests for a cookie
      using the *hasVisitedZoo* variable and displays the price
      according to whether a user is new or a repeat visitor::

        <dtml-if hasVisitedZoo>
          <p>Zoo admission <dtml-var adult_rate fmt="dollars-and-cents">.</p>
        <dtml-else>
          <b>Zoo admission for first time visitors
               <dtml-var expr="adult_rate/2" fmt="dollars-and-cents"></p>
        </dtml-if>  

        % Anonymous User - Dec. 22, 2003 9:48 am:
         ERROR: third and fourth lines should read 
         <dtml-else>
          <p>Zoo...



More information about the ZDP mailing list