Details
-
Bug
-
Resolution: Fixed
-
Blocker
-
1.7.6, 1.13.0-beta1, 1.12.1
-
None
Description
When creating a content in ez studio, it’s always publish under the main location.
Step to reproduce:
PlatformUI; this issue doesn't happen every time. It’s a random one.
- Create a first folder
- Create a second location
- Navigate to this second location and create a subelement (like an article) and publish it
- Edit the content you just create, and publish it again
- Sometimes the content is published but moved to the main location of your folder (and doesn’t stay on the second folder location)
StudioUI : 100% of time
- Create two folders ‘Folder A’ & ‘Folder B’
- Create a landing Page ‘MyLandingPage’ under ‘Folder A’
- Add Location to ‘MyLandingPage’ under ‘Folder B’
- Create an Article (From Studio interface) ‘MyArticleUnderLandingInFolderB’ Under the MylandingPage in folder B
- Go back to Platform and see that ‘MyArticleUnderLandingInFolderB’ is actually under FolderA/MyLandingPage
(The same will happen when editing a content1 under content2 with multiple locations and which is not under it’s main location… It will move the edited content under the mainlocation of content2)
(From a tech side I can see this is happening because the content is published under the MainLocation and not the current location.)
An example here: https://www.youtube.com/watch?v=3XE6TzoMWkM
Problem in the BPCE’s POC:
We are using the multi subtree to handle regions
Root main region second region other region
but each subtree under these subtrees are the same content, just with multiple location
Root main region content 1 (location 1 - main of content 1) content 2 (location 4 - main of content 2) content 3 (location 7 - main of content 3) second region content 1 (location 2) content 2 (location 5) content 3 (location 8) other region content 1(location 3) content 2 (location 6) content 3 (location 9)
if you create a content under a second location (not the main location), it’s created under the main parent location
Root main region content 1 (location 1 - main of content 1) content 2 (location 4 - main of content 2) content 3 (location 7 - main of content 3) BUT CONTENT 4 WILL BE PUBLISH HERE second region content 1 (location 2) content 2 (location 5) content 3 (location 8) other region content 1(location 3) content 2 (location 6) content 3 (location 9) /!\ WE CREATE A CONTENT 4 HERE