elglogins / Enterspeed.Contrib.Source.UmbracoCms.V9.RootDictionaryItem

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Enterspeed.Contrib.Source.UmbracoCms.V9.RootDictionaryItem · GitHub license PRs Welcome NuGet version

What is this package about?

It is an extension on top of Enterspeeds source connector for Umbraco v9, during source entities ingestion, it ingests additional root dictionary item entity per culture.

Ideas for usage:

  • Use in schemas to leverage actions and avoid route handle -> view conflicts.

Example of dictionary root item source entity

{
	"sourceId": "gid://Source/531fd49c-4191-4ff0-a3c2-391189f9f1ae",
	"id": "gid://Source/531fd49c-4191-4ff0-a3c2-391189f9f1ae/Entity/dictionaries-root-en-US",
	"type": "umbDictionaryRoot", // always 'umbDictionaryRoot'
	"originId": "dictionaries-root-en-US", // dictionaries-root-{p.culture}
	"originParentId": null,
	"url": null,
	"properties": {
		"culture": "en-US"
	}
}

Example of regular dictionary item source entity

{
	"sourceId": "gid://Source/531fd49c-4191-4ff0-a3c2-391189f9f1ae",
	"id": "gid://Source/531fd49c-4191-4ff0-a3c2-391189f9f1ae/Entity/e98023c9-d79c-4a4a-962a-5d295ff4ff4d-en-US",
	"type": "umbDictionary",
	"originId": "e98023c9-d79c-4a4a-962a-5d295ff4ff4d-en-US",
	"originParentId": "dictionaries-root-en-US", // This is also new! Previously = null
	"url": null,
	"properties": {
		"key": "Buttons.Refresh",
		"translation": "Refresh!",
		"culture": "en-US"
	}
}

Installation

dotnet add package Enterspeed.Contrib.Source.UmbracoCms.V9.RootDictionaryItem

Check other installation options.

Contributing

Pull requests are very welcome.
Please fork this repository and make a PR when you are ready.

Otherwise you are welcome to open an Issue in our issue tracker.

License

This project is MIT licensed

About

License:MIT License


Languages

Language:C# 100.0%