Copied to clipboard

Flag this post as spam?

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


  • Ismail Mayat 4511 posts 10090 karma points MVP 2x admin c-trib
    Mar 02, 2020 @ 09:56
    Ismail Mayat
    0

    Moving from content picker to related links in v7

    I have an existing inherited v7 site. The site has whole load of navigation blocks these blocks all use the content picker type which means you can only link to internal pages.

    The client was to now be able to use it for external links as well. So currently the property is Umbraco.MultiNodeTreePicker2 and I need to update to Umbraco.RelatedLinks2 however I am guessing that its not going to be as straight forward right? Will get some data loss unless i write something to migrate the existing data?

    Regards

    Ismail

  • Kevin Jump 2309 posts 14673 karma points MVP 7x c-trib
    Mar 02, 2020 @ 10:17
    Kevin Jump
    0

    Hi,

    yeah, I think you will need to convert:

    An MNTP is a comma-separated list of UDI values, while the related links picker is a bit of JSON with other stuff like title, open in new window.. (look in the sites umbraco.config file to see an example!)

    So you will likely have to load them all up and at the very least i think its the title you need to add. (so probably need to look up the content item for each thing in the MNTP).

    Kevin

  • Ismail Mayat 4511 posts 10090 karma points MVP 2x admin c-trib
    Mar 02, 2020 @ 10:35
    Ismail Mayat
    0

    cool ta, im gonna go for work around

Please Sign in or register to post replies

Write your reply to:

Draft