In November of 2016 IBM Watson Content Hub was shipped. In December Digital Experience version 9 was made available. With Digital Experience version 9 we have shipped a first integration capability to integrate assets from IBM Watson Content Hub into Digital Experience version 9 via an easy to use visual asset picker. In this article I will explain how the integration can be used.
What is Watson Content Hub?
The IBM Watson Content Hub a cloud-based content management system provides your business the ability to create, store, and retrieve content for your business needs in an effortless way. Watson automatically analyzes images and provides tag suggestions to help make your process easier. You can retrieve the content from the hub by using the APIs to published them in various media. You can publish the content through the various channels by selecting only parts of the content that is required for each channel.
Configuring the Integration
cd /opt/IBM/WebSphere/wp_profile/ConfigEngine/ ./ConfigEngine.sh config-ch-integ -Dch.tenant.id=mytenantid -Dch.user.name=myuserid -Dch.user.pwd=mypassword -DwasPassword=waspassword -DPortalAdminPwd=portalpassword -DAuthenticateUrl="https://www.digitalexperience.ibm.com/api/mytenantid/login/v1/basicauth" -DUrlMapping="https://myhost/*,https://www.digitalexperience.ibm.com/*"
- With the installation of Digital Experience version 9 a new theme profile is added (Content Hub Profile) – it contains the new theme module dch_module. To leverage the asset picker on a Portal page either select the new profile or add the module dch_module to your theme profile and assign to a new or existing page.
- Enter the edit mode and select the new Content Hub Page Component to find a selection to add a file, video or image to the page. Drag any of the page components onto the page.
- After the page components have been added to the page, an asset can be selected by clicking the Select File, Selecting Image or Selecting Video buttons. In the now opened asset picker select an image or video and select it to be rendered.
- Leave the edit mode to see the regular rendering of the page, retrieving the images from the published area of Watson Content Hub on the closest Akamai CDN node.
The display of the assets can be customized. The asset references are stored as WCM content based on the Content Hub authoring template. Additional elements of the stored JSON data can be displayed. The rendering happens via a referenced HTML component in the Content Hub library Components>Design folder. Other options could be to render the content as part of existing WCM content or leveraging the assets in a scripting portlet.
For more details see the following links: