Copy a field when creating a new version in Sitecore
Question
I understand that the Unversioned
and Shared
checkboxes in Sitecore
allow us to share a fields value across languages and versions.
I was wondering if there is a setting that will allow me to copy all fields from the default language into the new language when I add a new language version?
Solution
I don't think you can do this by default. You have several options, but the main ones (IMO) are:
The no-work approach is that you use the "Translate" view, which lets you see two versions of an item side-by-side so you can transpose one into the other. The copying process is manual, but at least you don't have to constantly switch versions.
Another (and by no means the only other) approach is to write an event handler that interacts with the Sitecore API. Make it respond to a version created event and, in the correct circumstances, copy the values from another version into the new version.