Vettvangur.DictionaryHelper
5.0.3
dotnet add package Vettvangur.DictionaryHelper --version 5.0.3
NuGet\Install-Package Vettvangur.DictionaryHelper -Version 5.0.3
<PackageReference Include="Vettvangur.DictionaryHelper" Version="5.0.3" />
<PackageVersion Include="Vettvangur.DictionaryHelper" Version="5.0.3" />
<PackageReference Include="Vettvangur.DictionaryHelper" />
paket add Vettvangur.DictionaryHelper --version 5.0.3
#r "nuget: Vettvangur.DictionaryHelper, 5.0.3"
#:package Vettvangur.DictionaryHelper@5.0.3
#addin nuget:?package=Vettvangur.DictionaryHelper&version=5.0.3
#tool nuget:?package=Vettvangur.DictionaryHelper&version=5.0.3
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. |
-
net10.0
- Umbraco.Cms.Core (>= 17.0.2)
- Umbraco.Cms.Web.Website (>= 17.0.2)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Vettvangur.DictionaryHelper:
| Package | Downloads |
|---|---|
|
Vettvangur.AiChat
Pluggable AI chat engine, streaming endpoint and conversation log for Umbraco sites. |
|
|
Binbraco.DictionaryHelper
Vettvangur.DictionaryHelper's DictionaryValue, tagged in Binbraco's Visual tab so a click on its text opens the dictionary item |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 5.0.3 | 63 | 11/26/2026 |
| 5.0.2 | 511 | 8/13/2026 |
| 5.0.1 | 182 | 8/12/2026 |
| 5.0.0 | 332 | 1/2/2026 |
| 4.6.0 | 301 | 1/13/2026 |
| 4.5.0 | 3,194 | 3/20/2025 |
| 4.4.0 | 933 | 12/4/2024 |
| 4.3.0 | 1,075 | 10/16/2024 |
| 4.2.0 | 2,136 | 4/29/2024 |
| 4.1.0 | 3,201 | 7/7/2023 |
| 4.0.9 | 536 | 6/15/2023 |
| 4.0.8 | 368 | 6/13/2023 |
| 4.0.7 | 414 | 4/25/2023 |
| 4.0.6 | 426 | 3/24/2023 |
| 4.0.5 | 407 | 3/24/2023 |
| 4.0.4 | 455 | 3/8/2023 |
| 4.0.3 | 521 | 1/17/2023 |
| 3.1.0 | 541 | 1/17/2023 |
| 3.0.8 | 497 | 1/13/2023 |
| 1.1.0 | 506 | 1/17/2023 |
Release for Umbraco 17 and 18