[ZDP] BackTalk to Document The Zope Book (2.5 Edition)/Dynamic Content with DTML

nobody@nowhere.com nobody@nowhere.com
Sat, 21 Sep 2002 10:20:21 -0400


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

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

    Now let's customize the header for the *Green* folder. Create a
    DTML Method in the *Green* folder with an id of
    *standard_html_header*. Then edit the contents of the header to
    the following::

      <html>
      <head>
        <style type="text/css">
        body {color: #00FF00;}
        p {font-family: sans-serif;}
        </style>
      </head>
      <body>

      % Anonymous User - July 1, 2002 4:46 am:
       !!!!!!!!!!!!

       That's a bug of some sort, surely. Don't put that last line, "ERROR:..." into your code, people!

      % krump - Aug. 27, 2002 12:10 am:
       It workds ok.  Remember it is just a header file and will be prepended to the 'welcome' object.

      % Anonymous User - Sep. 3, 2002 1:32 pm:
       This is the correct code:

       <html>
       <head>
         <style type="text/css">
         body {color: #00FF00;}
         p {font-family: sans-serif;}
         </style>
       </head>
       <body>
       </body>
       </html>

      % Anonymous User - Sep. 11, 2002 6:51 pm:
       No, the comment from Sep. 3, 2002 1:32 pm is WRONG. The </body> and </html> will come from
       standard_html_footer, so DON'T put them into the header, please.

      % Anonymous User - Sep. 21, 2002 10:20 am:
       It is a part of HTML code.

       A|F| <html>
       A|F| <head>
       A|F|   <style type="text/css">
       A|F|   body {color: #00FF00;}
       A|F|   p {font-family: sans-serif;}
       A|F|   </style>
       A|F| </head>
       A|F| <body>
       B|F| blub,blub,blub.....
       B|F| blub,blub,blub.....
       C|F| </body>
       C|F| </html>

       F| is HTML full code.
       A| is code of part A.
       B| is code of part B.
       C| is code of part C.