Copied to clipboard

Flag this post as spam?

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


  • Ulu Honolulu 32 posts 61 karma points
    Dec 30, 2011 @ 12:33
    Ulu Honolulu
    0

    Using Umbraco Dictionary in your code

    Hi,

    I've got a plain ashx handler, and I'd like to use some kind of a setting in it which is changing rather often, so I don't want to edit it each time I need to make a change. I can, of course, put it in my we.config, but this is not much better -- I still have to download, edit, and upload it.

    A better solution would be the ability to edit it via the admin menu. I figured I might use the Dictionary, but how do I use it in my handler's code, what's the API?

    Using Umraco 4..

    Thanks!

    ulu
    http://about.me/ulu

  • Braydie 148 posts 346 karma points
    Dec 30, 2011 @ 12:37
    Braydie
    1

    Hi Ulu,

    You should be able to access a dictionary item with umbraco.library.GetDictionaryItem("DictionaryItemName");

    Braydie

  • Ulu Honolulu 32 posts 61 karma points
    Dec 30, 2011 @ 12:48
    Ulu Honolulu
    0

    Fantastic, 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