Add an external component
To configure Content Hub, you must either be a superuser or have the necessary permissions granted to you through user group policies.
External components let you integrate external libraries into Sitecore Content Hub.
An External page component can handle one JavaScript (JS) bundle only. The bundle is a single file containing both code and template.
External page components, including the structure of HTML elements, might be affected by system upgrades. Changes might not persist, and unexpected behavior might occur. Exercise caution and review customizations after updates. Follow best practices when developing custom code.
To add an external component:
-
On the menu bar, click Manage
.
-
On the Manage page, click Pages.
-
On the Pages page, select the page you want to modify.
-
On the Layout tab, add the page component.
-
Click the component to open its details page.
-
Do one of the following:
-
If you uploaded the JS bundle to a CDN, select the From path option, and enter the full URL of the external JS bundle.
-
If you uploaded the JS bundle to Content Hub as a portal asset, select the From asset option, click Add
and, in the Asset dialog, select the JS bundle portal asset, and then click Save.
-
-
In the Configuration section, add custom JSON to show property information, use renditions, check permissions, and render content as needed.
-
To reuse an old Knockout fallback component, search for it in the Knockout fallback component search box.
TipYou might want to reuse older customized Knockout components on pages that were migrated to React but are rendered in Knockout to preserve customizations.
-
Click Save and close.