Copied to clipboard

Flag this post as spam?

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


  • ThomasH 1 post 71 karma points
    Oct 22, 2019 @ 14:25
    ThomasH
    0

    RJP.MultiUrlPicker and upgrade from v7 to v8

    I'm currently trying to upgrade from Umbraco v7 to v8 and we have some old datatypes called RJP.MultiUrlPicker. As I understand this is some old legacy stuff that is no longer in use.

    When I'm migrating the uda file changes from this:

    {
      "EditorAlias": "RJP.MultiUrlPicker",
      "DatabaseType": 0,
      "PreValues": {
        "hideTarget": "0",
        "maxNumberOfItems": "1",
        "minNumberOfItems": "0",
        "version": "2.2.0"
      },
      "Parent": null,
      "Udi": "umb://data-type/27a7c695f68b4a1fa089fd1a505ab685",
      "Dependencies": [],
      "Name": "Settings Base - Breadcrumb Override - Multi Url Picker",
      "Alias": null,
      "type": "Umbraco.Deploy,Umbraco.Deploy.Artifacts.DataTypeArtifact",
      "version": "2.0.15"
    }

    To this:

    {
      "EditorAlias": "Umbraco.Label",
      "DatabaseType": 0,
      "Configuration": {"umbracoDataValueType":"STRING"},
      "Parent": null,
      "Udi": "umb://data-type/27a7c695f68b4a1fa089fd1a505ab685",
      "Dependencies": [],
      "Name": "Settings Base - Breadcrumb Override - Multi Url Picker",
      "Alias": null,
      "type": "Umbraco.Deploy,Umbraco.Deploy.Artifacts.DataTypeArtifact",
      "version": "3.1.5"
    }

    Which is clearly not what I want. We have a lot of data using this data-type, and now this will be lost if we dont figure out a way to migrate this data over to a normal "MultiUrlPicker".

    I have of course tried to change the PropertyEditor in Backoffice to MultiUrlPicker, but if I do that, the whole page crashes...

    Does anyone have any suggestion what I can do to make this work?

  • Rasmus John Pedersen 14 posts 485 karma points hq c-trib
    Oct 22, 2019 @ 22:05
    Rasmus John Pedersen
    1

    Hi Thomas

    Which version of v7 are you trying to upgrade from? The Multi Url Picker was included in Umbraco 7.14, so the first step would be to upgrade to that version and change your data types to use Umbraco.MultiUrlPicker instead of my package. Then the migration to v8 should carry over the data type configuration.

    But be aware if the project have used RJP.MultiUrlPicker before v2 the data stored on content might be int Id's instead of UDIs and if that's the case you need to write some custom migration code since Umbraco.MultiUrlPicker only supports UDI values

Please Sign in or register to post replies

Write your reply to:

Draft