Saving feature configuration in Sharepoint

I have a Sharepoint function that significantly expands lists with a new function using the List receiver. For each list the function is bound to, I need to save some configuration.

Now the first thing that occurred to me was the obvious decision: to have a global list. Of course this works, but I wonder if there is a way to save the special configuration in a hidden place? Not that it was confidential, but I don’t want to clutter users with too many lists. I believe that I can hide the lists, but at the same time I wonder if sharepoint allows this database to be used?

I'm not talking about just using ADO.net for direct access to db (which is a big no-no with Sharepoint), I am thinking of some kind of officially supported mechanism.

+4
source share
2 answers

SPLists, unlike other objects, do not have property packages, however, all lists on a SharePoint site have a correlated SPFolder object stored in RootFolder, and the SPFolder object has a property package in which you can store user configuration data for the list.

Edit: I wrote an article in which how to use SPFolder to store user list data if you are interested.

.b

+4
source

You should look at the Sharepoint Configuration Storage . This is done by Chris O'Brien .

With SPConfigStore you can get configuration items this way

string sAdminEmail = ConfigStore.GetValue("MyApplication", "AdminEmail"); 
+1
source

All Articles