Get Elements in Current Folder
If I have a dtml method inside of a folder, how should I constuct the <dtml-in> statement to get the folder that the method is in? Thanks, Chris __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
Hi Chris, if its a DTML Method, all attributes are of its context, the surrounding folder in your case. So its simply: <dtml-in objectValues> </dtml-in> or <dtml-in expr="objectValues()"> </dtml-in> HTH Tino --On Donnerstag, 19. Juli 2001 14:17 -0700 Chris Bruce <chrisabruce@yahoo.com> wrote:
If I have a dtml method inside of a folder, how should I constuct the <dtml-in> statement to get the folder that the method is in?
Thanks,
Chris
__________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
_______________________________________________ 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 )
On Thu, 19 Jul 2001, Chris Bruce wrote:
If I have a dtml method inside of a folder, how should I constuct the <dtml-in> statement to get the folder that the method is in?
<dtml-in "ParentFolder.objectValues()"> or <dtml-in "aq_parent.objectValues()"> or (flawed and cheezy, but easy to remember; assume the enclosing folder is "pizza") <dtml-in "pizza.objectValues()"> -- Joel Burton <jburton@scw.org> Director of Information Systems, Support Center of Washington
participants (3)
-
Chris Bruce -
Joel Burton -
Tino Wildenhain