Vettvangur.DictionaryHelperV8 2.0.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package Vettvangur.DictionaryHelperV8 --version 2.0.1
NuGet\Install-Package Vettvangur.DictionaryHelperV8 -Version 2.0.1
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.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
#r "nuget: Vettvangur.DictionaryHelperV8, 2.0.1"
#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.
// 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

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.2.0 243 6/5/2023
2.1.0 319 1/17/2023
2.0.8 526 6/30/2022
2.0.7 1,181 11/9/2021
2.0.6 565 11/9/2021
2.0.5 2,533 7/22/2020
2.0.4 467 7/17/2020
2.0.3 464 7/17/2020
2.0.2 2,294 4/22/2020
2.0.1 757 4/22/2020

Dependency properties updated