I'm trying to bundle a couple of SurfaceControllers I've created into a package so I can drop the functionality into any future Umbraco instances I or a colleague create, but some of the functionality will need customising using configuration settings.
I know I could add the values into web.config's AppSettings and read them from there, however there doesn't seem to be a way to edit the AppSettings from within the Umbraco CMS. As the packages are loaded from within the CMS, I'd like any configuration to be available from within there too, as it's nice and clean and means more junior employees can administer the packages without requiring access to the server.
Is there a way to store configuration settings anywhere other than web.config, and is there a way to make configuration settings available within the Umbraco CMS?
If the AppSettings are the same for each site, check out the Package Action Contrib project which allows you to specify which AppSettings to add
If the settings are variable for each installation then consider using a usercontrol (yes, I know.. legacy, we need to allow for a view & controller instead) that can ask for the setting values after installing the package.
There's also the Config Tree package that allows you to manually edit web.config from within the developer section.
Excellent, thanks Sebastiaan. I'm sure I'll find one of those solutions appropriate. Apologies for the delayed response, got sidetracked with another project and forgot I'd even asked this!
Configuration Settings for a Package
Hi,
I'm trying to bundle a couple of SurfaceControllers I've created into a package so I can drop the functionality into any future Umbraco instances I or a colleague create, but some of the functionality will need customising using configuration settings.
I know I could add the values into web.config's AppSettings and read them from there, however there doesn't seem to be a way to edit the AppSettings from within the Umbraco CMS. As the packages are loaded from within the CMS, I'd like any configuration to be available from within there too, as it's nice and clean and means more junior employees can administer the packages without requiring access to the server.
Is there a way to store configuration settings anywhere other than web.config, and is there a way to make configuration settings available within the Umbraco CMS?
Thanks,
Anthony
Two options:
There's also the Config Tree package that allows you to manually edit web.config from within the developer section.
Excellent, thanks Sebastiaan. I'm sure I'll find one of those solutions appropriate. Apologies for the delayed response, got sidetracked with another project and forgot I'd even asked this!
Thanks again.
is working on a reply...