[Zope] Refrencing.

Andy McKay andym@ActiveState.com
Fri, 3 Nov 2000 09:44:26 -0800


<dtml-var x> gives you the object if sequence-item was actually an object.

Is there something else you are tyring to do like get the url to the object
for an image tag? in that case try <dtml-var "x.absolute_url()">, <untested>
but since let also pops onto the namespace <dtml-var absolute_url> should
also work</untested>.

----- Original Message -----
From: "Jason C. Leach" <jleach@mail.ocis.net>
To: <zope@zope.org>
Sent: Thursday, November 02, 2000 9:52 PM
Subject: [Zope] Refrencing.


> hi,
>
> if I do something like:
>
> <dtml-let x=sequence-item>
>
> What is the sintax to refrence that object?
> <img src=<dtml-var x.id>
> ?
>
> Thanks,
> j.
>
> ......................
> ..... Jason C. Leach
> ... University College of the Cariboo.
> ..
>
>
> _______________________________________________
> 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 )
>