[Zope] DTML - change document title?

Farrell, Troy troy.farrell@wcg.com
Fri, 11 May 2001 13:20:03 -0500


The problem with this:  A large number of pageviews will fill ZODB up with
copies of the document.  It might be better not to use <dtml-var
standard_html_header>, but instead write the header into the document and do
this:
<html>
<head>
<title><dtml-in sqlSelectTitle><dtml-var sqlTitle></dtml-in></title>
</head>
<body>
...
Modify to suite your needs.

Troy

-----Original Message-----
From: Casey Duncan [mailto:cduncan@kaivo.com]
Sent: Friday, May 11, 2001 12:52 PM
To: Kevin L
Cc: zope@zope.org
Subject: Re: [Zope] DTML - change document title?


Kevin L wrote:
> 
> I know this is probably really easy but I can't find it anywhere
> in the docs.
> 
> I have a dtml document that needs to have a different title
> every time (based on a database call). How can I set the title
> attribute from dtml?
> 
> thanks much
> 
> -Kevin
> 

<dtml-call expr="dtml_doc.manage_changeProperties(title='new title')">

hth,
-- 
| Casey Duncan
| Kaivo, Inc.
| cduncan@kaivo.com
`------------------>

_______________________________________________
Zope maillist  -  Zope@zope.org
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )