Vettvangur.DictionaryHelperV8 2.0.1

There is a newer version of this package available.
See the version list below for details.
Install-Package Vettvangur.DictionaryHelperV8 -Version 2.0.1
dotnet add package Vettvangur.DictionaryHelperV8 --version 2.0.1
<PackageReference Include="Vettvangur.DictionaryHelperV8" Version="2.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Vettvangur.DictionaryHelperV8 --version 2.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Vettvangur.DictionaryHelperV8, 2.0.1"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Vettvangur.DictionaryHelperV8 as a Cake Addin
#addin nuget:?package=Vettvangur.DictionaryHelperV8&version=2.0.1

// Install Vettvangur.DictionaryHelperV8 as a Cake Tool
#tool nuget:?package=Vettvangur.DictionaryHelperV8&version=2.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Umbraco DictionaryHelper V8

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") 

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

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
2.0.7 584 11/9/2021
2.0.6 146 11/9/2021
2.0.5 1,738 7/22/2020
2.0.4 218 7/17/2020
2.0.3 218 7/17/2020
2.0.2 1,612 4/22/2020
2.0.1 321 4/22/2020

Dependency properties updated