Deleting ZClass Instances via DTML
Hello, is there a way deleting a ZClass instance via dtml ? syntax like this: <form action name="del"> ??? delObj <dtml-var id> ??? <input type=submit value="delete"> </form id is the id of the object I want to delete. thank you nico
Nico Grubert schrieb:
Hello,
is there a way deleting a ZClass instance via dtml ? syntax like this:
<form action name="del"> ??? delObj <dtml-var id> ???
<input type=hidden name="del_id" value="id_of_ZClass_instance"> To prevent confusion with the use of id in dtml, I would'nt choose 'id' as a variable name in forms or requests.
<input type=submit value="delete"> </form
in "del": <dtml-call "manage_delObjects(ids=[del_id])">
id is the id of the object I want to delete.
hth, Thomas -- fon: ++49 (0)40 42878 3781 fax: ++49 (0)40 42878 2728
participants (2)
-
Nico Grubert -
Thomas Weiner