Alterian CRC / Immediacy : Reading A Site Option

In Immediacy, if you want to store global data you should be using the SiteOption feature from the Administrator.  This is the place where all plug-in configurations are stored, as well as a bunch of other stuff.

If you’re writing your own custom C# plug-in and you need one of the SiteOptions, then you can use the Immediacy API to get the value for you.  First, add a reference to Immediacy.Configuration, after that use the following code and enjoy!

ISiteOptions options = Immediacy.Configuration.SiteOptions.Instance;
SiteOptionGroup Option1 = options[“SiteOptionsName”];

(change “SiteOptionsName” to the value you want to get)

Jon D Jones

Software Architect, Programmer and Technologist Jon Jones is founder and CEO of London-based tech firm Digital Prompt. He has been working in the field for nearly a decade, specializing in new technologies and technical solution research in the web business. A passionate blogger by heart , speaker & consultant from England.. always on the hunt for the next challenge

More Posts