Connector for HCL Commerce Manual / Version 2210
Table Of ContentsCoreMedia Content Cloud enables you to directly preview pages for not augmented or augmented products, not augmented or augmented categories and CoreMedia channels in CoreMedia Studio within the shop context (as a shop page with the shop frame around it). Otherwise, you would get a CoreMedia-typical fragment preview that shows a content item with multiple views.
To enable the preview of Category Pages in the shop context, add a Boolean property
livecontext.policy.commerce-category-links to your LiveContext settings and set
the value "true".
To enable the preview of Product Pages in the shop context, add a Boolean property
livecontext.policy.commerce-product-links to your LiveContext settings and set
the value "true".
To enable the preview of CoreMedia Channels in the shop context, add a Boolean property
livecontext.policy.commerce-page-links to your LiveContext settings and set
the value "true".
In order to enable the preview of Commerce category pages in Studio, proceed as follows:
Open the
CommonJSToInclude.jspffile and ensure that${jsAssetsDir}javascript/CoreMedia/coremedia-pbe.jsis included if_cm_page_pbe_pageDatais not empty.
In the
studio-serverapp, thestudio.previewUrlWhitelistproperty must contain the commerce URL (including the port, for example*coremedia.comorhttp://localhost:40080). Be aware that this property overwrites thestudio.previewUrlPrefixproperty, so you have to add the default CAE preview URL to thestudio.previewUrlWhitelistproperty too.
Note
If your HCL Commerce shop storefront uses any clickjacking prevention features (for example, X-Frame-Options (see https://help.hcltechsw.com/commerce/8.0.0/admin/tasks/tseiframerestrictxframe.html for details), please make sure to allow the shop preview (HCL Commerce Staging-/Authoringserver) being embedded as an iframe within CoreMedia Studio.


