Create an asset picker page
To configure Content Hub, you must either be a superuser or have the necessary permissions granted to you through user group policies.
Content Hub provides a default asset picker page (SCAssetConnector) that you can embed in an external app using the Embedding SDK.
However, if you want to customize the asset picker, you must create a new page and add a Search component to it. You also need to add the Select public link operation to use the onPublicLinkSelected callback.
To create an asset picker page for the Embedding SDK:
-
Create a page with the Master layout set to Sitecore plugin.
-
On your new page, on the Layout tab, add a Search component and then click it.
-
On the component's details page, add the desired filters to the Search component.
-
Optionally, on the component's details page, configure the functionality you want.
-
On the component's details page, in the Views section, enable the view you want to use for your asset picker.
-
On the Operations tab of the enabled view, click Add operation > Select public link.
-
In the Select public link settings, turn on the Is main click area operation switch.
-
Click Save.
-
To enable additional views, repeat steps 5 to 8.
-
Optionally, on the component's details page, you can configure the tools you want.
You can now embed this page into an external app using the Embedding SDK.