Hello,

can anyone help me with field_image_data table field? I see that now I have to "translate" with a way the data of alt ant title of the images and put them in field_image_data field.

I need to do manual INSERT to database and in a new content type with ImageField but I dont know how to make data this way:

a:3:{s:11:"description";s:22:"test description";s:3:"alt";s:15:"test alt";s:5:"title";s:19:"test title";}

Thank you.

Comments

drewish’s picture

Status: Active » Postponed (maintainer needs more info)

no clue what you're trying to do... please be more descriptive.

quicksketch’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Seems like you're going about things in a really strange way. You can translate content through the interface by using the core Translate module.

As for the "format" used by ImageField, you can get data in and out of that format by using PHP functions serialize() and unserialize(). Either way, custom coding and SQL queries are outside what the maintainers of ImageField are able to help with.