ImageField solution
jchatard - December 1, 2008 - 16:45
| Project: | Prepopulate |
| Version: | 6.x-1.1 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
Hi all,
I'm on D6 using CCK2 with ImageField (FileField 3.0) and I can't prepopulate file/image fields. Which is not strange I guess because these are not regular form elements.
Do you guys gave it a try and succeed?
I tried something like this:
<?php
&edit[field_image][0][fid]=6
?>For something rendered like that:
<?php
<input type="hidden" value="6" id="edit-field-image-0-fid" name="field_image[0][fid]" />
?>Thank you!
Jérémy
