Make CE copy action more flexible
Web -> Page -> Languages
When we have content Elements in the default language a Button called "Copy default content elements (#)" shows up.
This button copies all content elements in this column and sets their `l18n_parent` to the uid of the CE being copied from.
Pro's and Con's¶
- Easy to use
- keeps l18n_parent intact
- No way to copy from a different language
- keeps l18n_parent intact, thus no way to simply copy, not copy & reference
Keeping l18n_parent intact has some implications because the editor now works on references, rather on independent content.
In general the current way with referenced translations is fine.
But in order to translate independent content from a language, an editor needs to create all content elements again - resulting in a tedious task.
Proposed behavior¶The button "copy default content elements (#)" is being replaced with a split button.
The dropdown part of the button contains the following options:
- Translate from default language
- Copy from language `Language name` (per Language that has content elements on this page)
If the latter case of copying from a language the content elements are truly copied, so no reference to a parent language will be set.
This will speed up the process for an editor in case the editor needs independent, translated content.