[ZOPE] newbie question: getting title_or_id from calling document

Oleg Broytmann Oleg Broytmann <phd@phd.pp.ru>
Mon, 15 Oct 2001 21:08:43 +0400


On Mon, Oct 15, 2001 at 06:05:18PM +0100, Simon Brogden wrote:
> I'm trying to create a standard_header that when included in a document
> uses the calling documents namespace. So, if the standard_header was:
> <html>
> <head>
> <title><dtml-var title_or_id></title
> </head>
> ...
> 
> and the index_html document had as it's first line:
> <dtml-var standard_header>
> 
> How can I make the standard header DTML document write the title/ID of
> index_html or any of the documetns that call/include it?.

   Make it DTML Method, not Document.

Oleg.
---- 
     Oleg Broytmann            http://phd.pp.ru/            phd@phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.