[Zope] DTML-WITH Problem

marc lindahl marc@bowery.com
Sun, 16 Sep 2001 12:33:14 -0400


You should consider using one of the several photo gallery products already
in existence...

> From: Jan Lentfer <Jan.Lentfer@web.de>
> Date: Sun, 16 Sep 2001 18:28:32 +0200
> To: zope@zope.org
> Subject: [Zope] DTML-WITH Problem
> 
> Hi all,
> 
> I am (again) having a newbie problem
> here.
> I want to create the attribute for the
> <DTML-WITH> tag dynamically. My Document
> looks like this until now:
> 
> -------------
> <dtml-call "REQUEST.set
> ('working_folder',
> 'galleries.'+gallery_id)">
> 
> <dtml-with working_folder>
> <dtml-in expr="objectValues('Image')"
> sort=bobobase_modification_time reverse>
> 
> <dtml-var title><BR>
> </dtml-in>
> </dtml-with>
> --------------
> 
> I think it is pretty clear what I do. My
> Picture-Galleries are subfolders of the
> "galleries" folder and I try to access
> them by invoking the "working_folder".
> This just doesnt_work. If I do for
> example
> 
> <DTML-WITH "galleries.gallery1">
> instead of <DTML-WITH working_folder>
> 
> it works fine. So I think it must be
> something about the format of
> "working_folder". So I think I need to
> cast it somehow. But how?
> Or maybe there is a totally different
> and easier way to accomplish this?
> 
> Many thanks in advance,
> 
> Jan
> 
> --
> Jan@MountainbikeHQ.de
> http://www.MountainbikeHQ.de - Your home for DH, DS and CC Mountainbiking
> 
> 
> 
> 
> _______________________________________________
> 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 )