Hi There, I'm a bit stuck on this issue.
I've created a node type with an Imagefield CCK field with FUpload.
For 'Default Title text' and 'Default Alt text' I have put in a string (THIS IS AN IMAGE).
I am creating one node per image and I have set node title and description to be editable fields.
When I create a bunch of nodes using FUpload, they are created ok except that the alt and title attributes for the image are not set.
I can solve the problem, if I edit and save the node again using the UI.
I have looked through the code and in function fupload_list_images_imagefield_submit (in image_fupload_imagefield_widget.inc) nodes are saved using node_save .. but the code that would sort out the default alt and title text is in function imagefield_widget_process (in imagefield_widget.inc).
So there is seems to be some code missing somewhere, but I haven't got my head around cck widgets yet. Any ideas?
--Rob
| Comment | File | Size | Author |
|---|---|---|---|
| Screen shot 2010-09-18 at 12.56.42.png | 26.69 KB | EdinburghRob |
Comments
Comment #1
宁皓网_王皓 commentedsame problem!
Comment #2
mibfire commented+1
Comment #3
vasrush commentedSame problem here.
Default settings are ignored.