Our.Community.Configuration
17.0.0-rc01
See the version list below for details.
dotnet add package Our.Community.Configuration --version 17.0.0-rc01
NuGet\Install-Package Our.Community.Configuration -Version 17.0.0-rc01
<PackageReference Include="Our.Community.Configuration" Version="17.0.0-rc01" />
<PackageVersion Include="Our.Community.Configuration" Version="17.0.0-rc01" />
<PackageReference Include="Our.Community.Configuration" />
paket add Our.Community.Configuration --version 17.0.0-rc01
#r "nuget: Our.Community.Configuration, 17.0.0-rc01"
#:package Our.Community.Configuration@17.0.0-rc01
#addin nuget:?package=Our.Community.Configuration&version=17.0.0-rc01&prerelease
#tool nuget:?package=Our.Community.Configuration&version=17.0.0-rc01&prerelease
Our.Community.Configuration - Umbraco 17+
Store configuration data in the Umbraco database.
This plugin allows you to store configuration data in a custom table in the Umbraco database.
Supported data types
- Strings (can be encrypted)
- Numbers
- Booleans
Dashboard
<img src="https://github.com/huwred/Our.Community.Configuration/blob/main/Documentation/images/dashboard.png?raw=true" width="800" alt="Settings Dashboard" title="Settings Dashboard"/>
Add Property
<img src="https://github.com/huwred/Our.Community.Configuration/blob/main/Documentation/images/overlay.png?raw=true" width="400" alt="Add Property" title="Add property dialog"/>
Access properties in code
To access your settings you will need to inject the configuration service.
IOurConfiguration ourconfig
Getting config data
// Fetch a single config setting
OurConfigDataSchema setting = ourconfig.Get("propAlias");
//Fetch ALL config settings
IEnumerable<OurConfigDataSchema> settings = ourconfig.GetConfig();
//Fetch config settings for a specific group
IEnumerable<OurConfigDataSchema> settings = ourconfig.GetConfigByGroup("TESTGROUP")
Retrieving a value
Returns an object of the required type (string,int,bool), it will also return the decrypted value if the property is being stored with encryption.
var setting = ourconfig.Value(fieldname);
OurConfigDataSchema
| Property | Type | Description |
|---|---|---|
Id |
int |
The unique identifier for the configuration entry |
Alias |
string |
The unique alias used to retrieve the setting |
Name |
string |
The display name of the setting |
Value |
string |
The stored value (encrypted if Encrypted is true) |
DataType |
string |
The data type of the value (string, int, bool) |
Group |
string |
The group the setting belongs to |
Encrypted |
bool |
Indicates whether the value is stored with encryption |
Example usage
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Effortless.Net.Core.Encryption (>= 1.3.1)
- System.Runtime.Caching (>= 10.0.5)
- Umbraco.Cms.Api.Common (>= 17.3.0)
- Umbraco.Cms.Api.Management (>= 17.3.0)
- Umbraco.Cms.Web.Common (>= 17.3.0)
- Umbraco.Cms.Web.Website (>= 17.3.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Our.Community.Configuration:
| Package | Downloads |
|---|---|
|
Our.Community.Configuration.OptionsProvider
IOptions provider for Our.Community.Configuration |
GitHub repositories
This package is not used by any popular GitHub repositories.