[Zope] DTML Question

Matt Gregory matthew.gregory@skyleach.com
Mon, 1 Apr 2002 09:18:16 -0500


That's fine as long as it's an image I want to access, but it really doesn't
answer the question at hand.  How do I navigate namespaces?

I think that this reply might answer it in part:

<dtml-var expr="_.getitem(images).picid">

but more questions:

doesn't that assume that the item I am retrieving is inside of the current
(calling) namespace?
If I want something from mytemplate from inside of myportal would <dtml-var
expr="_.getitem(mytemplate).page_head"> work?

What if it was something nested within myportal?  Like portlet_a?  would it
then be <dtml-var expr="_.getitem(mytemplate.portlet_a).page_head">?

> mysite
>   |_images
>   |_mytemplate
>   |_myportal

Thanks for the help so far..
-Matt

----- Original Message -----
From: "Schmidt, Allen J." <aschmidt@nv.cc.va.us>
To: "'Matt Gregory'" <matthew.gregory@skyleach.com>; "Zope" <zope@zope.org>
Sent: Monday, April 01, 2002 8:24 AM
Subject: RE: [Zope] DTML Question


> The most simple:
> <IMG SRC="/images/mypic.gif">
>
> -----Original Message-----
> From: Matt Gregory [mailto:matthew.gregory@skyleach.com]
> Sent: Monday, April 01, 2002 8:21 AM
> To: Zope
> Subject: [Zope] DTML Question
>
>
> In a namespace like:
>
> mysite
>   |_images
>   |_mytemplate
>   |_myportal
>
> How do I access images from myportal with a <dtml-var> ?
>
> I cannot find a help reference for this action and <dtml-var
/mysite/images>
> does not work and neither does any other combination I can find.
>
> Do I need to do this with a python expression?
>
>
> _______________________________________________
> 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 )
>
> _______________________________________________
> 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 )
>