[ic] Image Widget Revisited

Cameron B. Prince cplists at princeservices.com
Wed Feb 7 20:07:47 EST 2007


Hey guys,

I am back to work on the imagehelper widget and I've ran into a new problem.
When none is selected it doesn't cause the value in the field to be cleared.
When you reedit the record you see that the original image is still
selected. Selecting none does work properly with the imagedir widget.

I compared the output of each widget in the table editor and came up with
this:


IMAGEHELPER:

<td class="cwidget" style="vertical-align: top">
<A HREF="images/items/140.jpg">140.jpg</A>
<INPUT TYPE=hidden NAME=mv_data_file_field VALUE="image">
<INPUT TYPE=hidden NAME=mv_data_file_name_from VALUE="">
<INPUT TYPE=hidden NAME=mv_data_file_path VALUE="images/items">
<select name="mv_data_file_oldfile">
<option value="">(none)
<option value="100.jpg">100.jpg
...
</select>
<INPUT TYPE=file NAME="image" VALUE="140.jpg">
<input type="hidden" name="ui_filter:image" value="nullselect">
</td>


IMAGEDIR:

<td class="cwidget" style="vertical-align: top">
<input type="text" name="image" size="" value="">
<select name="image" class="s3">
<option value="">None
<option value="100.jpg">100.jpg
...
</select>
<input type="hidden" name="ui_filter:image" value="nullselect">
</td>


Do you think this is a widget issue or a problem in Data.pm?

Thanks,
Cameron



More information about the interchange-users mailing list