Copied to clipboard

Flag this post as spam?

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


  • Bjarne Fyrstenborg 1280 posts 3990 karma points MVP 7x c-trib
    Feb 23, 2016 @ 12:16
    Bjarne Fyrstenborg
    0

    Map data when upgrading package to v. 0.2.0

    Hi..

    I upgraded a site from Umbraco 7.2.4 to 7.4.1 ... afterwards I upgraded Nested Content package from v. 0.1.1 to v. 0.2.0, but due new changes to support multiple doc types, Nested Content doesn't map the data for the existing content and therefore no items in the editor, although umbraco.config has the old json.

    Is it possible to map the old values for doc type, tab and name template for the new multi-items config?

    At the moment I have to manually select the doc type in dropdown, an enter the values for tab and name template.

    /Bjarne

  • Lee Kelleher 4020 posts 15802 karma points MVP 13x admin c-trib
    Feb 24, 2016 @ 15:06
    Lee Kelleher
    0

    Hi Bjarne,

    I've been looking over the source-code for the multi-doctype feature, which I thought was backwards-compatible... (it's been a while since I've looked at the code - eek!)

    v0.2.0 should update the v0.1.1 data...

    https://github.com/leekelleher/umbraco-nested-content/blob/0.2.0/src/Our.Umbraco.NestedContent/Helpers/NestedContentHelper.cs#L46

    ... which should get called when Umbraco gets the value from the database ... hmm, I'm a bit confused why it's not being called.

    Can you raise an issue on our GitHub repo?
    https://github.com/leekelleher/umbraco-nested-content/issues

    Thanks,
    - Lee

  • Bjarne Fyrstenborg 1280 posts 3990 karma points MVP 7x c-trib
    Feb 25, 2016 @ 08:49
    Bjarne Fyrstenborg
    0

    Hi Lee

    Okay, I'll raise an issue on the Github repo..

    Thanks, /Bjarne

  • Lee Kelleher 4020 posts 15802 karma points MVP 13x admin c-trib
    Feb 25, 2016 @ 09:40
    Lee Kelleher
    0

    Thanks Bjarne.

    I think I misread your post, do you mean the content (property) value isn't being mapped, or that the DataType's prevalue isn't being mapped?

    Cheers,
    - Lee

  • Bjarne Fyrstenborg 1280 posts 3990 karma points MVP 7x c-trib
    Feb 25, 2016 @ 11:17
    Bjarne Fyrstenborg
    1

    Hi Lee

    I mean that the new multi-doctype settings in Nested Content datatype config isn't set with the old values.

    So before I had a doc type chosen and value for "name template", but these are not selected/set in the config - so the property editor view didn't display the values even the umbraco.config contains the "old" json property value.

    But after I manually set the values of the doctype and name template in datatype config, I got the data into the property editor view in content section.

    /Bjarne

  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    Dec 20, 2016 @ 16:32
    Jeroen Breuer
    0

    I'm having the same issue. Is there a way to keep the content from the 0.1 version in combination with LeBlender? Topic: https://our.umbraco.org/projects/backoffice-extensions/leblender/bug-reports/81981-leblender-nested-content-and-umbraco-75

    Jeroen

  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    Dec 21, 2016 @ 11:03
    Jeroen Breuer
    0

    The problem is that it's Nested Content inside LeBlender which saves it inside the Grid. So for Nested Content 0.1 the JSON inside the Grid is this:

    "blockItems": {
    "value": [
      {
        "name": "Item 1",
        "title": "Assertiviteit",
        "subtitle": "Vergroot je persoonlijke effectiviteit",
        "buttonLink": "1442"
      }
    ]
    

    And for Nested Content 0.2 or 0.3 the JSON inside the Grid is:

    "blockItems": {
    "value": [
      {
        "name": "Item 1",
        "ncContentTypeAlias": "Top5Items",
        "title": "top5item1title",
        "subtitle": "top5item1subtitle",
        "buttonLink": "6596"
      }
    ]
    

    So when I open Nested Content in LeBlender it doesn't render anything because the old JSON doesn't work anymore. I could write some code which updates all Grid conten, but is there maybe an easier way to do this?

    Jeroen

  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    Dec 21, 2016 @ 11:50
    Jeroen Breuer
    0

    There is also a Twitter conversation about this: https://twitter.com/j_breuer/status/811237916609544197

    For now I'll keep using Nested Content 0.1 because I don't need the new features and I don't have time for a custom upgrade script.

    Jeroen

  • Søren Kottal 702 posts 4497 karma points MVP 5x c-trib
    Jun 27, 2017 @ 07:23
    Søren Kottal
    0

    Hi Jeroen

    Are you still on 0.1?

    I have a solution using LeBlender and Nested Content 0.1, and are approaching the need for an upgrade. So just want to check if you ever got yours upgraded, and if it went ok :)

  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    Jun 27, 2017 @ 08:15
    Jeroen Breuer
    0

    Sorry I didn't solve it because using LeBlender and Nested Content 0.1 was good enough for us.

    Jeroen

  • Søren Kottal 702 posts 4497 karma points MVP 5x c-trib
    Jul 05, 2017 @ 08:31
    Søren Kottal
    1

    Hi Jeroen

    I needed to upgrade, so wrote a script for migrating. Created a gist if anyone would be interested: https://gist.github.com/skttl/7b6b02bb4506ef89d45db76904427e23

Please Sign in or register to post replies

Write your reply to:

Draft