We are working in Sitecore 7.1 version and we have multiple publishing targets and multiple languages.What we need to do is , when Chinese language is selected for any item at the time of publishing then publishing target for China (say Internet-China) should be selected automatically and when user select any other language then common publishing target for all other languages(say Internet) should be auto selected.
So Basically we need to fire oncheckchanged event for all languages appear in publishing form at the time of publish.
could anyone help us achieving this would be great. Thanks, Kapil
Check
\sitecore\shell\Applications\Dialogs\Publish\Publish.jsfile. It already contains code to check or uncheckAll Languagescheckbox while clicking on particular language checkbox and the opposite way. You just need to add your code there.I'm guessing you will need to hardcode a selector for Chinese language and for Internet-China target.
EDIT
Looks like the file I mentioned above was added in 7.2 version. You can create it on our own in 7.1. Just in
Publish.xmladd 2 scripts lines:And create the mentioned
publish.jsfile