core
core copied to clipboard
Rework Relationship Field/Tab for Multilingual Content
The basic idea is here http://screencast.com/t/fs6IjYfvO
A few points to realize.
- When clicking the language flag green or orange it needs to go to editing that content and if grey then create the content in that language. In this case make it use the same logic that asks to pre-populate in the default language as we currently do.
- We need to make sure this works in both the field AND the relationship tab which exists if you do not use the relationship field.
- Make sure the html can overflow if you add too many languages. In this case make another row
Updated the code to fix the relating different language contents issue.
Working on the issue of reordering children content.
Below test cases are working right :
- Relationship Tab and Field.
- One to Many.
- Many to Many.
- Multiple Relations.
- Self Relation.
- Relating Multiple contentlets with Multiple languages.
- Clicking on the language flags is editing the appropriate language content.
Saw an issue here: https://github.com/dotCMS/dotCMS/issues/1138
Kudos to Sam though, most of this is working really well on self-join and joining two structures. He did a lot of really good work for a first draft of this change.
I will retest everything again when the new issue comes thru.
added to test scripts