Copied to clipboard

Flag this post as spam?

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


  • Chester Campbell 98 posts 209 karma points
    Mar 04, 2021 @ 18:13
    Chester Campbell
    0

    Does CMSImport support Umbraco.MultiNodeTreePicker picking content

    Hi,

    I noticed in the CMSImport manual it states that the importer support Umbraco.MultiNodeTreePicker when it's used to pick media.

    But does it support that property editor when it's used to pick content?

    I have tried passing in a comma-delimited string of node IDs and also an array of node IDs (my input file is json) but neither worked. No errors in the log either.

    So I'm guessing I already know the answer, but just thought I'd ask in case I'm getting the data format wrong in my input file.

    Thanks

  • Amir Khan 1282 posts 2739 karma points
    Mar 04, 2021 @ 18:19
    Amir Khan
    0

    I'm pretty sure I've done that before with MNTP / Content on v7 by passing node IDs but is it possible you need to pass guids in for your setup?

  • Chester Campbell 98 posts 209 karma points
    Mar 04, 2021 @ 18:25
    Chester Campbell
    0

    Umbraco 8 saves MNTP data as a comma-delimited list of UDIs. So, yeah, it makes sense if my input data was formatted the same way then the import would work ... because all CMSImport would be doing is inserting my properly formatted string.

    But what I'm hoping is that CMSImport can translate a list of node names or a list of node IDs into the UDIs that Umbraco 8 expects.

  • Richard Soeteman 4035 posts 12842 karma points MVP
    Mar 05, 2021 @ 14:08
    Richard Soeteman
    100

    Hi,

    You can pass in node names then it it will try to find the matching document but id's are more simpler. I will add support for that soon..

    But for now Node names will work.

    Best,

    Richard

  • Chester Campbell 98 posts 209 karma points
    Mar 05, 2021 @ 20:40
    Chester Campbell
    0

    I edited my JSON input file to pass this data for property that's being mapped to the MNTP:

    "Categories": "Thing,Other Thing,Something"
    

    And those did get imported properly and matched up via the nodename matching. So hooray!!

    I have a suggestion about this process but I'll post that to the other forum.

Please Sign in or register to post replies

Write your reply to:

Draft