[ZDP] BackTalk to Document The Zope Book (2.5 Edition)/Dynamic Content with DTML
nobody@nowhere.com
nobody@nowhere.com
Wed, 11 Sep 2002 18:51:44 -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.