[Zope] Re: Another question about manage_changeProperties
jens ebaer
jensebaer@hotmail.com
Tue, 26 Oct 1999 14:18:45 GMT
Hello
I tried out your suggestions and that help's me very much but I still have a
problem. Now I send you the two dtml Methods.
_____________________________________________________________________
changeObjectProperties #dtml-Method1 containing the form#
<!--#var standard_html_header-->
<H2><!--#var title_or_id--> <!--#var document_title--></H2>
<P>This is the <!--#var document_id--> Document in
the <!--#var title_and_id--> Folder.</P>
<form action="changeproperties" method="POST" enctype="multipart/form-data">
<table border="0" cellspacing="0" cellpadding="2" width="630">
<dtml-in propertyMap mapping>
<tr>
<td align="left" valign="top" width="16">
<input type="checkbox" name="ids:list" value="<dtml-var id>"
ID="cb-zubehoerueberschrift6">
</td>
<td align="left" valign="top">
<strong><LABEL FOR="cb-zubehoerueberschrift6"><dtml-var
id></LABEL></strong>
</td>
<td align="left" valign="top">
<dtml-if "type == 'text'">
<textarea name="<dtml-var id>" rows="6" cols="35"><!--#var
text1--></textarea>
<dtml-else>
<input type="text" name="<dtml-var id>" size="35" value="<dtml-var
"_[id]">">
</dtml-if>
</td>
</tr>
</dtml-in>
<table border="0" cellspacing="0" cellpadding="2">
<dtml-in "objectValues('Image')"> <td align="left" valign="top">
<strong><!--#var id--></strong>
</td>
<tr>
<td align="left" valign="top">
<img src="<!--#var id-->" border="0"-->
<!--#with id-->
<!--#var get_size-->
<!--#/with-->
<INPUT TYPE="file" NAME="<!--#var id-->" value="<!-#var id-->"
SIZE="25">
</td>
</tr>
</dtml-in>
<tr>
<td align="left" valign="top" width="16">
</td>
<td align="left" valign="top" width="16">
</td>
<td align="left" valign="top">
<input type="submit" name="Submit"
value="Save Changes">
<input type="submit" name="manage_delProperties:method" value="Delete">
</td>
</tr>
</table>
</form>
<!--#var standard_html_footer-->
__________________________________________________________________
#This dtml method above seems to be ok. It works with the static
#version(old) changeproperties dtml-method.
#The aim of the to files is to get a form that is dynamic.
#to reach this, both files must be dynamic (not only the form)
#The problem is with the following file:
__________________________________________________________________
changeproperties #dtml-method to change the properties of a folder object.
<dtml-in "objectValues('Image')">
<!--#if "_.getitem('id',1) !=''"-->
<!--#call "manage_upload(REQUEST[_.getitem('id',1)])"-->
<!--#endif-->
</dtml-in>
#until here it works
#the following syntax runs without an error but it doesn't change the
#Properties of the folder
<dtml-in propertyMap mapping>
<!--#call "manage_changeProperties(id = REQUEST[_.getitem('id',1)])"-->
</dtml-in>
<!--#var changeObjectProperties-->
___________________________________________________________
Thank you
Jens
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com