Nested content properties not editable after import
Hi Kevin,
I'm having a problem with some of my nested content properties not being editable after import. Here's the setup I've got, to allow for tabbed content to be shown on the site inside a grid layout:
Grid layout on the page, which uses Doc Type Grid Editor to allow element doc types to be added to the grid
One of the allowed element types (representing a set of tabs) has a nested content property (containing all the tabs)
The nested content property allows a child element type (a single tab)
The child type has a grid layout property (the content to be displayed on the tab)
A bit complicated, but it works. However after a translation is imported, the tabs in the translated version are not editable in the backoffice. Clicking on the "set of tabs" in the grid will open it for editing, but the nested content property which contains all the tabs is empty. Only the default blank "Item 1" tab is there. It still displays correctly in the front end site.
I've looked in DevTools at the contents of the nested content property as it is returned by the UmbracoApi/Content/GetById call. In the original version, it's regular JSON and I can expand it and browse through it like all the ancestor objects. In the translated version, it's a string of JSON with all the quote characters escaped with backslashes.
I'm using v8.7.7, and I'm pretty sure this was working before I upgraded from v8.2.12. Is it possible that the imported JSON is not being unescaped correctly on import?
yeah it sounds likely that the JSON isn't quite right, there is a lot of json vs json stored in strings in nested content (e.g there are other places where the JSON has to be a string. i suspect there has a been a subtle change it what works for your setup and thats why its now behaving like that.
We can almost certainly fix it, but we will have to have a look at mimicking your setup and to make sure we get the mixture right. we will look at this first thing in the new year.
I think we have fixed this now. It was actually the link updating process (runts to check for updates relative links between sites) which runs after approval that was breaking them.
if you update to v8.7.9 this should be fixed.
If the target content hasn't been changed on your site, you can quicky fix existing translation jobs.
find the job you want in the archive tree in the Translation section.
click on the arrow on the "Reset Job" button and select "Reset to received"
this will put the job back into a received state
Approve the job again.
this will take the translated content and re-apply it to umbraco, and with the latest v8.7.9 version this should then fix the nested content in the datagrid elements.
Nested content properties not editable after import
Hi Kevin,
I'm having a problem with some of my nested content properties not being editable after import. Here's the setup I've got, to allow for tabbed content to be shown on the site inside a grid layout:
A bit complicated, but it works. However after a translation is imported, the tabs in the translated version are not editable in the backoffice. Clicking on the "set of tabs" in the grid will open it for editing, but the nested content property which contains all the tabs is empty. Only the default blank "Item 1" tab is there. It still displays correctly in the front end site.
I've looked in DevTools at the contents of the nested content property as it is returned by the UmbracoApi/Content/GetById call. In the original version, it's regular JSON and I can expand it and browse through it like all the ancestor objects. In the translated version, it's a string of JSON with all the quote characters escaped with backslashes.
I'm using v8.7.7, and I'm pretty sure this was working before I upgraded from v8.2.12. Is it possible that the imported JSON is not being unescaped correctly on import?
Thanks
HI Steve,
yeah it sounds likely that the JSON isn't quite right, there is a lot of json vs json stored in strings in nested content (e.g there are other places where the JSON has to be a string. i suspect there has a been a subtle change it what works for your setup and thats why its now behaving like that.
We can almost certainly fix it, but we will have to have a look at mimicking your setup and to make sure we get the mixture right. we will look at this first thing in the new year.
Kevin
Thanks for looking at this Kevin, do you need any further info about my setup to proceed?
Hi Steve,
I think we have fixed this now. It was actually the link updating process (runts to check for updates relative links between sites) which runs after approval that was breaking them.
if you update to v8.7.9 this should be fixed.
If the target content hasn't been changed on your site, you can quicky fix existing translation jobs.
this will put the job back into a received state
this will take the translated content and re-apply it to umbraco, and with the latest v8.7.9 version this should then fix the nested content in the datagrid elements.
Hi Kevin, I've just tested and it works perfectly. Thanks very much!
is working on a reply...