Vettvangur.DictionaryHelper
5.0.0
dotnet add package Vettvangur.DictionaryHelper --version 5.0.0
NuGet\Install-Package Vettvangur.DictionaryHelper -Version 5.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Vettvangur.DictionaryHelper" Version="5.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Vettvangur.DictionaryHelper" Version="5.0.0" />
<PackageReference Include="Vettvangur.DictionaryHelper" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Vettvangur.DictionaryHelper --version 5.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Vettvangur.DictionaryHelper, 5.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Vettvangur.DictionaryHelper@5.0.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Vettvangur.DictionaryHelper&version=5.0.0
#tool nuget:?package=Vettvangur.DictionaryHelper&version=5.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Umbraco DictionaryHelper
All dictionary items are fetched and inserted into concurrency dictionary cache on start up and will be accessible with an extension on Umbraco helper.
Dictionary items can be created automaticly under specific parent key or by using namespacing to create a tree.
Available on Nuget
Click here to go to nuget project page
Example of usage with Umbraco helper:
Fetches the value of the dictionary item. Returns empty string if not found.
@using DictionaryHelper;
@Umbraco.DictionaryValue("key") //Fetches the value of the dictionary item. Returns empty string if not found.
Fetches the value of the dictionary item. Returns the default value if value is empty or key not found.
@Umbraco.DictionaryValue("key", "Default value")
Fetches the value of the dictionary item. Returns the default value if value is empty or key not found and will create the dictionary item with the default value if the key is not found.
@Umbraco.DictionaryValue("key", "Default value", null, true)
Creates the dictionary key if not found as a child on the parent key.
@Umbraco.DictionaryValue("key", "Default value", "parentKey", true)
Checks if any of the keys are existing and creates them if not found. With this approach the developer does not have to create the tree in the backoffice and its easy to know where the keys are located.
@Umbraco.DictionaryValue("root.child.key", "Default value", null, true)
"root.child.key" Will be created as:
- root
- child
- key
Example of usage with service:
using DictionaryHelper;
@Service.GetValueByKeyAndCulture("key", "en-GB")
| 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Umbraco.Cms.Core (>= 17.0.2)
- Umbraco.Cms.Web.Website (>= 17.0.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 5.0.0 | 189 | 1/2/2026 |
| 4.6.0 | 158 | 1/13/2026 |
| 4.5.0 | 2,129 | 3/20/2025 |
| 4.4.0 | 801 | 12/4/2024 |
| 4.3.0 | 926 | 10/16/2024 |
| 4.2.0 | 1,986 | 4/29/2024 |
| 4.1.0 | 2,803 | 7/7/2023 |
| 4.0.9 | 497 | 6/15/2023 |
| 4.0.8 | 337 | 6/13/2023 |
| 4.0.7 | 385 | 4/25/2023 |
| 4.0.6 | 394 | 3/24/2023 |
| 4.0.5 | 379 | 3/24/2023 |
| 4.0.4 | 426 | 3/8/2023 |
| 4.0.3 | 494 | 1/17/2023 |
| 4.0.2 | 517 | 1/13/2023 |
| 4.0.1 | 491 | 1/13/2023 |
| 3.1.0 | 517 | 1/17/2023 |
| 3.0.8 | 466 | 1/13/2023 |
| 3.0.7 | 448 | 1/13/2023 |
| 1.1.0 | 477 | 1/17/2023 |
Loading failed
Release for Umbraco 17