Global Context
Global contexts in Umbraco provide a clean, type-safe way to share functionality across the backoffice.
Registration of a Global Context
{
"$schema": "../../umbraco-package-schema.json",
"name": "My Global Context Package",
"version": "1.0.0",
"extensions": [
{
"type": "globalContext",
"alias": "My.GlobalContext",
"name": "My Global Context",
"api": "/App_Plugins/my-global-context/dist/my-context.context.js"
}
]
}Creating Your Global Context
1. Define a Context Token
2. Implement the Context Class
Using Global Contexts
Last updated
Was this helpful?