Add content or assets to Watson Content Hub using wchtools
We can use wchtools to add content or assets to Watson Content Hub. It is recommended that we use wchtools when you have a large number of external content or assets to upload to Watson Content Hub, as using Catalog Upload might take longer to complete the task.
Task info
The following tasks let you package and upload content to Watson Content Hub. The expected file structure is as follows:
- Managed assets: Assets such as catalog images and attachments, that are managed in Watson Content Hub and to be referenced and used in Management Center.The file structure for manaed assets is expected to be within the assets/dxdam directories, and ordered in a way that suits your business needs. For example, for a shirt and hero image in the catalog, the file structure could be:
- assets/dxdam/catalog/shirts/shirt1.jpg
- assets/dxdam/catalog/hero/category1Hero.jpg
When creating a data load file for addressing any of these types of assets, specify the path relative to assets/dxdam, such as catalog/shirts/shirt1.jpg or catalog/hero/category1Hero.jpg to reference the preceding examples.
- Static web assets or developer assets: Assets such as JavaScript and CSS files, that are stored in Watson Content Hub and addressed directly.The file structure for static assets is expected to be anywhere outside the assets/dxdam directories, and ordered in a way that suits your business needs. For example, for a JavaScript file used in your custom store, the file structure could be:
- assets/CustomStore/home/custom.js
Previous topic: Manage content types in Watson Content Hub