From 5de0d1f3fbf85c872e6bfe32c35ff2b94bd1af9f Mon Sep 17 00:00:00 2001 From: Jan Skovgaard <1932158+BatJan@users.noreply.github.com> Date: Fri, 25 Apr 2025 22:00:42 +0200 Subject: [PATCH 1/2] Update backoffice-entry-point.md Fixed typos in code examples where the parameter for "extensionRegistry" reads "extensionsRegistry", which is not correct. Also there was an example where it said "extension.unregister" instead of "extensionRegistry.unregister" --- .../extension-types/backoffice-entry-point.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/15/umbraco-cms/customizing/extending-overview/extension-types/backoffice-entry-point.md b/15/umbraco-cms/customizing/extending-overview/extension-types/backoffice-entry-point.md index 81dfa73e2fb..3ddddb45dcb 100644 --- a/15/umbraco-cms/customizing/extending-overview/extension-types/backoffice-entry-point.md +++ b/15/umbraco-cms/customizing/extending-overview/extension-types/backoffice-entry-point.md @@ -43,14 +43,14 @@ import type { UmbEntryPointOnInit } from '@umbraco-cms/backoffice/extension-api' /** * Perform any initialization logic when the Backoffice starts */ -export const onInit: UmbEntryPointOnInit = (host, extensionsRegistry) => { +export const onInit: UmbEntryPointOnInit = (host, extensionRegistry) => { // Your initialization logic here } /** * Perform any cleanup logic when the Backoffice and/or the package is unloaded */ -export const onUnload: UmbEntryPointOnUnload = (host, extensionsRegistry) => { +export const onUnload: UmbEntryPointOnUnload = (host, extensionRegistry) => { // Your cleanup logic here } ``` @@ -78,14 +78,14 @@ const manifest: UmbExtensionManifest = { } }; -export const onInit: UmbEntryPointOnInit = (host, extensionsRegistry) => { +export const onInit: UmbEntryPointOnInit = (host, extensionRegistry) => { // Register the extension extensionRegistry.register(manifest); } -export const onUnload: UmbEntryPointOnUnload = (host, extensionsRegistry) => { +export const onUnload: UmbEntryPointOnUnload = (host, extensionRegistry) => { // Unregister the extension (optional) - extension.unregister(manifest); + extensionRegistry.unregister(manifest); } ``` {% endcode %} @@ -139,7 +139,7 @@ const manifests: Array = [ ... ]; -export const onInit: UmbEntryPointOnInit = (host, extensionsRegistry) => { +export const onInit: UmbEntryPointOnInit = (host, extensionRegistry) => { // Register the extensions extensionRegistry.registerMany(manifests); } From 2bc4954f317b142d9f2c7c6eed07c77bf76fa47e Mon Sep 17 00:00:00 2001 From: sofietoft Date: Mon, 28 Apr 2025 08:38:22 +0200 Subject: [PATCH 2/2] Trigger GitBook Checks --- .../extension-types/backoffice-entry-point.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/15/umbraco-cms/customizing/extending-overview/extension-types/backoffice-entry-point.md b/15/umbraco-cms/customizing/extending-overview/extension-types/backoffice-entry-point.md index 3ddddb45dcb..a7b687bb47d 100644 --- a/15/umbraco-cms/customizing/extending-overview/extension-types/backoffice-entry-point.md +++ b/15/umbraco-cms/customizing/extending-overview/extension-types/backoffice-entry-point.md @@ -4,7 +4,7 @@ description: The Backoffice Entry Point extension type is used to run some JavaS # Backoffice Entry Point -This manifest declares a single JavaScript file that will be loaded and run when the Backoffice starts. In other words this can be used as an entry point for a package. +This manifest declares a single JavaScript file that will be loaded and run when the Backoffice starts. In other words, this can be used as an entry point for a package. The `backofficeEntryPoint` extension is also the way to go if you want to load in external libraries such as jQuery, Angular, React, etc. You can use the `backofficeEntryPoint` to load in the external libraries to be shared by all your extensions. Additionally, **global CSS files** can also be used in the `backofficeEntryPoint` extension.