[Zope] DTML Newbie: Using variable as an object in path?
Kevin Carlson
khcarlso@bellsouth.net
Thu, 9 Jan 2003 08:58:00 -0500
You could accomplish the first by using:
<dtml-with "a_folder_name[the_variable_name]">
--Note it says "the_variable_name" and not "the_variable_value"
Another way to set a variable within the current DTML is to use <dtml-let>.
Hope that helps,
Kevin
-----Original Message-----
From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of
Patrick Price
Sent: Wednesday, January 08, 2003 11:52 PM
To: zope@zope.org
Subject: [Zope] DTML Newbie: Using variable as an object in path?
I'd like to set a variable in a DTML document, then call another DTML
doc and use that variable as part of an object path:, eg:
<dtml-with a_folder_name.the_variable_value>
so I can use different objects (files) by passing the filename in the
variable.
How can I do this?
Also, is the correct way to set a DTML variable to use dtml-call
REQUEST.set or is there another way?
Thanks in advance,
Patrick Price
_______________________________________________
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 )