Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Steve Crook 28 posts 160 karma points
    Dec 23, 2021 @ 06:24
    Steve Crook
    0

    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?

    Thanks

  • Kevin Jump 2342 posts 14889 karma points MVP 8x c-trib
    Dec 23, 2021 @ 10:59
    Kevin Jump
    1

    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

  • Steve Crook 28 posts 160 karma points
    Jan 10, 2022 @ 02:40
    Steve Crook
    0

    Thanks for looking at this Kevin, do you need any further info about my setup to proceed?

  • Kevin Jump 2342 posts 14889 karma points MVP 8x c-trib
    Jan 10, 2022 @ 15:40
    Kevin Jump
    100

    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.

    1. find the job you want in the archive tree in the Translation section.
    2. click on the arrow on the "Reset Job" button and select "Reset to received"

    this will put the job back into a received state

    1. 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.

  • Steve Crook 28 posts 160 karma points
    Jan 11, 2022 @ 02:02
    Steve Crook
    0

    Hi Kevin, I've just tested and it works perfectly. Thanks very much!

Please Sign in or register to post replies

Write your reply to:

Draft