Vettvangur.DictionaryHelper
1.0.3
See the version list below for details.
dotnet add package Vettvangur.DictionaryHelper --version 1.0.3
NuGet\Install-Package Vettvangur.DictionaryHelper -Version 1.0.3
<PackageReference Include="Vettvangur.DictionaryHelper" Version="1.0.3" />
paket add Vettvangur.DictionaryHelper --version 1.0.3
#r "nuget: Vettvangur.DictionaryHelper, 1.0.3"
// Install Vettvangur.DictionaryHelper as a Cake Addin #addin nuget:?package=Vettvangur.DictionaryHelper&version=1.0.3 // Install Vettvangur.DictionaryHelper as a Cake Tool #tool nuget:?package=Vettvangur.DictionaryHelper&version=1.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.
Added value: 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)
Example of usage with service:
using DictionaryHelper;
@Service.GetValueByKeyAndCulture("key", "en-GB")
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net452 is compatible. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
-
- UmbracoCms.Core (>= 7.0.0)
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 |
---|---|---|
4.4.0 | 135 | 12/4/2024 |
4.3.0 | 351 | 10/16/2024 |
4.2.0 | 1,145 | 4/29/2024 |
4.1.0 | 1,473 | 7/7/2023 |
4.0.9 | 366 | 6/15/2023 |
4.0.8 | 176 | 6/13/2023 |
4.0.7 | 241 | 4/25/2023 |
4.0.6 | 253 | 3/24/2023 |
4.0.5 | 215 | 3/24/2023 |
4.0.4 | 258 | 3/8/2023 |
4.0.3 | 316 | 1/17/2023 |
4.0.2 | 345 | 1/13/2023 |
4.0.1 | 306 | 1/13/2023 |
4.0.0 | 306 | 1/13/2023 |
3.1.0 | 341 | 1/17/2023 |
3.0.8 | 323 | 1/13/2023 |
3.0.7 | 310 | 1/13/2023 |
3.0.6 | 326 | 1/13/2023 |
3.0.5 | 329 | 1/12/2023 |
3.0.4 | 320 | 12/29/2022 |
3.0.3 | 425 | 10/14/2022 |
3.0.2 | 416 | 10/14/2022 |
3.0.1 | 425 | 10/14/2022 |
3.0.0 | 407 | 10/12/2022 |
1.1.0 | 316 | 1/17/2023 |
1.0.10 | 409 | 11/9/2021 |
1.0.9 | 568 | 11/9/2021 |
1.0.8 | 2,833 | 10/9/2020 |
1.0.7 | 473 | 10/9/2020 |
1.0.6 | 503 | 10/8/2020 |
1.0.5 | 13,554 | 12/22/2017 |
1.0.4 | 1,112 | 12/22/2017 |
1.0.3 | 1,080 | 12/22/2017 |
1.0.2 | 1,047 | 12/22/2017 |
1.0.1 | 1,048 | 12/22/2017 |
1.0.0 | 1,218 | 12/22/2017 |
First public release. All dictionary items are fetched and inserted into concurrency dictionary cache on start up and will be accessible with an extension on Umbraco helper.