[Zope] Referencing object in other folders
Michel Pelletier
michel@digicool.com
Wed, 13 Oct 1999 11:18:06 -0400
Roché Compaan wrote:
> I have the following folder structure
>
> / (Root folder)
> --Images (folder)
>
> I simply reference images in the images folder by using:
> <dtml-with Images>
> <dtml-var myimage>
> </dtml-with>
>
> Isn't there a shorter way to address objects in other folders?
You think that's long? Looks pretty short to me. If you want it even
shorter you can make a DTML method that contains your snippet, and then
call the method:
<dtml-var theWrapperMethod>
Remember that due to acquisition, your snippet of code will work
anywhere in zope without needing to change it (as long as the Images
folder is in the root folder).
-Michel