[Zope] How to get title of a DTML Document?

Michel Pelletier michel@digicool.com
Wed, 24 Nov 1999 12:33:54 -0500


> -----Original Message-----
> From: Art Hampton [mailto:arth@pacsg.css.mot.com]
> Sent: Tuesday, November 23, 1999 5:38 PM
> To: zope@zope.org
> Subject: Re: [Zope] How to get title of a DTML Document?
> 
> 
> M. Adam Kendall wrote:
> > 
> > On 23-Nov-1999 Art Hampton wrote:
> > > Sorry if this is a basic newbie question, but I've sifted 
> through the
> > > docs and haven't been able to find the answer.
> > >
> > > I've got a document that I include in my 
> standard_html_header.  That
> > > works fine.  But I'd like to also use the DTML Document's 
> title in the
> > > header.
> > 
> > <!--#var title_or_id-->
> 
> That gets the title or id of index_html.  I need the title of a
> different document.

<dtml-var document_title>

Yes, it's undocumented.  Sigh.  There is is also a document_id.
Confusingly, it works for both Methods and Documents.

-Michel