19 Feb
2001
19 Feb
'01
4:48 p.m.
Hello, how can I add a ZClass depending on a form value? I have a form variable called "type" which contains the type of ZClass I want to add: the "static" way is (working): <dtml-with "manage_addProduct['MyObjects']"> <dtml-with "article1.createInObjectManager(id, REQUEST)"> <dtml-call "propertysheets.Basic.manage_editProperties(REQUEST)"> </dtml-with> </dtml-with> now the form variable "type" either contains the string "article1" or "article2". but calling <dtml-with "_[type].createInObjectManager(id, REQUEST)"> doesn't work. what's the right way to do this? thanks --Oliver
9178
Age (days ago)
9178
Last active (days ago)
0 comments
1 participants
participants (1)
-
Oliver Frommel