[Zope] Re: dtml-var with a propertys reference

Maik Jablonski maik.jablonski@uni-bielefeld.de
Wed, 12 Mar 2003 19:52:00 +0100


Einar Nęss Jensen wrote:
> 
> In one of my zclasses I have a property "link_file" which holds a 
> filename/objectID.
> 
> if this property says "alit.html", then In my dtml-method I want do do 
> something like:
> 
> <dtml-var link_file>
> 
> and then it should render the content of "alit.html", but of course it 
> only renders the text "alit.html".
> 
> what is the right syntax to reference the object which the property 
> references to and not the text?

<dtml-var "_.getitem(link_file,1)">

  should give you the rendered object.

-mj