Copied to clipboard

Flag this post as spam?

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


  • Steve 139 posts 318 karma points
    Mar 26, 2015 @ 21:54
    Steve
    0

    GetDictionaryItem in custom controller

    Hi,

    I'd like to look up a dictionary item from within a custom WebApi controller, however it seems that umbraco.library.GetDictionaryItem() is not using the current Culture setting. How do I get the method to use the current Culture setting?

    Umbraco 7 / dictionary functions throughout the rest of the project fuction properly.

    Thanks, Steve

  • Alex Skrypnyk 5908 posts 22603 karma points MVP 4x admin c-trib
    Mar 28, 2015 @ 17:03
    Alex Skrypnyk
    0

    Hi Steve,

    Try to use

    Umbraco.GetDictionaryValue()

    I think umbraco.library.GetDictionaryItem() isn't modern way to get dictionary.

    Thanks

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies