Quote from: kongo09 at Dec 28, 2009, 11:17 AM
These are two different things!
- I suggested automatic copying of the original MODx content to not just the default language but also the other languages in order to make translation a bit easier. This should be rather straight forward to implement.
With regards to copying content, perhaps we need a form within the module interface that would allow copying of content between languages or between languages and the standard document variables whenever required. The form would be something like:
* Copy from (dropdown): document variables, language1, language2, ...
* Copy to (dropdown): document variables, language1, language2, ...
* Method (dropdown): always copy, only copy if ’to’ field is blank
* Copy (button)
- You suggest copying or syncing of the default language stuff back to the original MODx fields whenever there is a change. I looked at the code and feel that this is a bit more tricky to do. Very well possible, but from my limited understanding of YAMS just more effort.
This would be something that happened on document save. It’s probably not that difficult to implement actually. There is already an option to automatically synchronise the pagetitle document variable with the default language pagetitle... So, it would just require a loop of the same logic over the other fields and the addition of an option in the module interface to allow this functionality to be switched on/off. I’ll add it to the TO DO list.