I have the following scenario:
Master publication A on level 1 which is inherited through blueprint by Publication B on level 2 and Publication C on level 2.
I crate new multimedia component (with image pictureX.jpg) and a component that uses the image in Publication A. This is inherited in Publications B and C and image is not localized. Publications B and C share images folder on the file system (they are mysite.com/english-B/ and mysite.com/german-C/)
When I publish from publication B using template with default finish action pictureX.jpg is deployed to the images folder. I then publish from publication C, images pictureX.jpg is still there and there is no new image. So far so good.
I now publish using addbinary from publication B and C and two images are created (with suffix tcm),one for each publication. I would like to have 1 image. I can add image name to addbinary call, but this produces deployment conflict (binary with same name already exists).
How is this best solved? Should I use addbinary on image from parent publication (or first publication where it is localized)?
AddBinary()
. I believe Publish Binaries in Package also uses AddBinary (per Chris Summers' popular post), you might be able to also use a version of AddBinary() (not sure which though).