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 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
Hi Ulu,
You should be able to access a dictionary item with umbraco.library.GetDictionaryItem("DictionaryItemName");
Braydie
Fantastic, thanks!!
is working on a reply...