I think Node Images is a very usefull module because uploading and publishing images in nodes is very easy for users, but in a multilingual website, in the translation of a node with images, you are forced to re-upload all the images for the translated node. Is it possible not to lose the data of the images in the translation of a node?

Comments

tatien’s picture

I also have this problem on several of my Drupal sites. I like the simplicity of node_images, but there's no way to get a proper translation mechanism.

One way would be to be able to "link" to an existing image instead of always uploading new images. Another way around would be to work with image_attach (which can handle translations cause it can link to existing images) and create a new module that displays a node_images-like gallery for attached images for a given node.

andypost’s picture

Possible plan...
1) add new table node_images_link (nid, linkid) where linkid is id from node_images table - solve this in database level.
2) change upload form to choose existing file - maybe use autocomplete
3) when node delete - check links and main images for existance, remove from node_images only when no links exist
4) change queries when get images associated with node - to get list of images

i think more preferable way to change db structure to node_image(all attributes from old table except nid) and node_images(nid, niid)

any ideas?