SmartHub Application Loader for Modern Pages in SharePoint Online
About
This app is used as a generic way to inject JavaScript files into SharePoint Online modern pages.
It is used to integrate various components (such as the SmartHub Search Box) from SmartHub into SharePoint pages.
How to Deploy the App Package
-
Navigate to your SharePoint Online Admin Center.
-
For example: https://contoso-admin.sharepoint.com
-
-
Open the App Catalog.
-
Click "upload a new app."
-
Navigate to the "shApplicationLoaderForModernSPO" directory from your local SmartHub installation:
<SmartHub_Root>/integrations/shApplicationLoaderForModernSPO -
Select the file SmartHub Application Loader for Modern SPO.sppkg to upload.
-
Before clicking "Enable app" make sure you enable the "Enable this app and add it to all sites" check box.
-
Click Enable app
-
How to Configure the Application Loader
-
Navigate to the file SHApplicationLoaderForModernSPO.exe.config at <SmartHub_root>/integrations/shApplicationLoaderForModernSPO/install.
-
Open the file SHApplicationLoaderForModernSPO.exe.config for editing.
-
Configure the settings based on the details provided in the table below:
Setting Name | Description | Example/default value |
---|---|---|
BaseSharepointAddress |
|
Example: https://contoso.sharepoint.com |
FilesToLoad |
|
|
ExcludeAlreadyInstalled |
|
true |
SitesToInstallOn |
|
Example: "https://contoso.sharepoint.com/site1Address,https://contoso.sharepoint.com/site2Address" |
SmartHubAddress |
Note: Do not use the trailing character '/'
|
Example: https://smarthub.contoso.com |
CustomSettings |
|
Example of SearchBox for Modern SPO: Copy
|
Mode |
|
install |
SpfxClientSideComponentId | Controls the package that is installed (PROD/DEV/UAT) |
|
How to Install
To inject the JavaScript files in SharePoint Online modern pages, run the file SHApplicationLoaderForModernSPO.exe in the same folder as the configuration above.