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?
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).
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
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
cool ta, im gonna go for work around
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.