loading table of contents...

6.2.3.11. Replacing WCS Images in Categories with CMS Images

CoreMedia DXP 8 allows you to manage images in the CoreMedia system for categories of the IBM WebSphere Commerce system. The mechanism and steps are equivalent to the product image management feature as described before.

First you have to link a Category to a Picture item and afterwards you have to add a specific URL to the category definition in the IBM system.

Add the following CoreMedia URL formats to the category definition in the IBM WebSphere Commerce:

http://<cmshost>:<cmsport>/blueprint/servlet/catalogimage/category/<storeId>/en_US/thumbnail/<category_code>.png
http://<cmshost>:<cmsport>/blueprint/servlet/catalogimage/category/<storeId>/en_US/full/<category_code>.png
[Note]Note

IBM supports multiple image URLs for products in an extended sites environment. That means that you can specify a dedicated image URL per product and per site although the catalog is shared between different sites.

On the other hand it is not supported to override image urls for categories in an extended sites environment. That means that the same image url is used for all sites. You can add a [storeId] placeholder to image urls which is dynamically replaced with the storeId-value of the current site at runtime. The image url format looks like this:

http://myHost:40080/blueprint/servlet/catalogimage/category/[storeId]/en_US/thumbnail/myCategoryCode.png

Please note, that for [storeId] resolution the following feature described in Section 8.7.4.2, “Placeholder Resolution for Asset URLs” in CoreMedia Digital Experience Platform 8 Developer Manual must activated.