----- Original Message -----
From: "Kapil Thangavelu" <[EMAIL PROTECTED]>
To: "Tim Hicks" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Saturday, September 02, 2000 3:59 PM
Subject: Re: [Zope] How to access id and title of document calling
> Tim Hicks wrote:
> > For those of you who saw my posts from a couple of days ago
> > Maurer and Geir Bfkholt), this is the question that I think I
> > have been asking in the first place.
> > I have a standard_html_header that is inserted into Zclasses.
> > Zclasses have properties including meta_author, meta_description
> > (I don't think it is important what they are, just that they are
> > properties that standard_html_header does not have). In the
> > standard_html_header, I use code such as <dtml-var meta_author>
> > <dtml-var meta_description>. This works fine and the properties
> > the *zclass* are inserted. However, if I put <dtml-var id> into
> > standard_html_header, I get the id of standard_html_header, *not*
> > the zclass. How do I tell zope to which item I am refering
> > in mind, I don't know the name of the zclass ie it is variable)?
> > Cheers
> Make your standard_html_header a DTML Method not a Document. Methods
> operate on their containers. Documents operate on themselves. The
> Document is acquiring the ZClass properties after looking through
> own. The Method looks for the properties of its containers.
It is a method already! Any ideas. If it makes any difference, I'm
running Zope 2.2.0 (although I really don't think this is important).
Zope maillist - [EMAIL PROTECTED]
** No cross posts or HTML encoding! **
(Related lists -