Copied to clipboard

Flag this post as spam?

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


  • Steve 140 posts 321 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 6175 posts 24176 karma points MVP 8x 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

Please Sign in or register to post replies

Write your reply to:

Draft