Copied to clipboard

Flag this post as spam?

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


  • Johan Grönberg 2 posts 82 karma points
    Apr 06, 2023 @ 07:40
    Johan Grönberg
    0

    MNTP FieldProvider with PRO version

    It seems our MNTP FieldProvider doesn't work with the pro version. It used to work while using the trial.

    The FieldProvider is triggered, but whatever it returns from the Parse method is discarded. I guess AdvancedMNTPSettingsProvider overwrites the result?

    I've tried adding both a high and low priority to no avail:

    [FieldProvider(PropertyEditorAlias = "Umbraco.MultiNodeTreePicker", Priority = int.MaxValue)]
    public class MultiNodeTreePickerFieldProvider : IFieldProvider
    {
        public object? Parse(object value, IContentBase importedItem, ImportPropertyInfo property, FieldProviderOptions fieldProviderOptions)
        {
            ...
        }
    }
    

    We're using Umbraco 11.

  • Richard Soeteman 4035 posts 12842 karma points MVP
    Apr 06, 2023 @ 09:25
    Richard Soeteman
    100

    Hi,

    On the Fieldprovideroptions you can set break to true, Then it should ignore my providers later on.

    fieldProviderOptions.Break = true;
    

    Best,

    Richard

  • Johan Grönberg 2 posts 82 karma points
    Apr 06, 2023 @ 09:41
    Johan Grönberg
    0

    Hi,

    That did the trick, thank you!

Please Sign in or register to post replies

Write your reply to:

Draft