Copied to clipboard

Flag this post as spam?

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


  • Richard Thompson 100 posts 336 karma points
    Feb 21, 2019 @ 16:47
    Richard Thompson
    0

    Configuring a field provider

    Hi,

    I'm importing a doc type which uses the uComponents MultiUrlPicker in Umbraco 6 to an Umbraco 7 site which uses the Umbraco MutliUrlPicker for that property.

    I'm trying to write a field provider so that I can map the data from the old format to the new format.

    I've decorated the field provider with the following:

    [FieldProvider(PropertyEditorAlias = "29f9301c-31f8-437d-b6b5-897c1cafe586", Priority = FieldProviderPrio.High)]
    [FieldProvider(PropertyEditorAlias = "Umbraco.MultiUrlPicker", Priority = FieldProviderPrio.High)]
    

    If I add a break point in my parse method it never gets hit. This leads me to believe that I'm not decorating my provider correctly.

    I'd be grateful for some assistance.

    Thanks

    Richard

  • Richard Soeteman 3915 posts 12242 karma points MVP
    Feb 22, 2019 @ 07:14
    Richard Soeteman
    0

    Hi Richard,

    Make sure to implement the IFieldProvider Interface as well.

    Best,

    Richard

  • Richard Thompson 100 posts 336 karma points
    Feb 22, 2019 @ 09:39
    Richard Thompson
    100

    Hi Richard,

    Thanks for the reply. It turns out I was mistaken on the property type we were using. I should have used RJP.MultiUrlPicker rather than Umbraco.MultiUrlPicker as we are using that package for the URL picker.

    Thanks again for the help.

    Richard

Please Sign in or register to post replies

Write your reply to:

Draft