I am creating some features in SharePoint 2010. I need to have some settings for all the features that I intend to keep in a xml file that should get deployed to 14 hive. On feature activation, settings should be read from the xml file. How can I have a common xml file for all my features and how to read it back from 14 hive.
Tell me more
×
SharePoint Stack Exchange is a question and answer site for
SharePoint enthusiasts. It's 100% free, no registration required.
|
You can use properties element in the feature schema. It allows you to store config information in the form of key value pair. Here is a article that describes it usage. Also you can always use resource file (see here), but I guess properties element of feature schema would be better way to do it. |
|||
|
|
Sharepoint includes a hierarchical configuration manager that can safely store and retrieve configuration settings. You can use sharepoint property bags to store/retrieve config settings. SharePoint 2010 does not provide a user interface to read and write these configuration settings at run time. To do this, you can use the property bag editor on CodePlex: codeplex |
|||||||||
|