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

    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.


  • mmaty 100 posts 230 karma points
    Mar 20, 2020 @ 14:48

    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"?


Please Sign in or register to post replies

Write your reply to: