Copied to clipboard

Flag this post as spam?

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


  • Vitaly Vasilega 62 posts 184 karma points
    Jun 13, 2017 @ 13:04
    Vitaly Vasilega
    0

    Umbraco 7.6 and idType for some Data Types

    Hi everyone, In the 7.6 version was added idType for some Data Types (Content Picker, Member Picker and etc.)

    I understand that for some types is hard-coded which type will be used, udi or int?

    Just in my code I use:

    var dataTypeDisplay = Mapper.Map<IDataTypeDefinition, Umbraco.Web.Models.ContentEditing.DataTypeDisplay>(dataTypeDefinition);
    

    to get config information and this property is missing.

    Thanks

  • mmaty 109 posts 281 karma points
    Mar 20, 2020 @ 14:48
    mmaty
    0

    The same applies in V. 8.5.4:

    var dataTypeDisplay = Mapper.Map<IDataType, Umbraco.Web.Models.ContentEditing.DataTypeDisplay>(dataType);
    

    doesn't give me the idType and therefore the MediaPicker etc. used in a property page delivers an id as a string instead of the UDI.

    If my package uses a property page with arbitrary property editors, how can I make sure, that the idType config value is set to "udi"?

    Mirko

Please Sign in or register to post replies

Write your reply to:

Draft