To specify a default preview user and, in a multisite environment, a default site to preview, you must create a PreviewManager
component:
Create PreviewManager
components from this class:
atg.remote.commerce.assetmanager.preview.service.MerchandisingPreviewService
This component includes the following properties:
Property | Description |
---|---|
| The ID of the default preview user. If this property is not set, the default preview user is an anonymous user. |
| The site ID of the default preview site in a multisite environment. If this property is not set, the default preview site is the first site in the ordered list of sites. |
The default preview user and site are used when a Merchandising user does either of the following:
Clicks the Layout button in Merchandising to display site view.
Clicks the Preview As button in an asset’s Details pane to select preview parameters.
For example:
# /atg/dynamo/service/preview/PreviewManager.properties $class=atg.remote.commerce.assetmanager.preview.service.MerchandisingPreviewService # Explicitly sets the document.domain property in both the BCC page # and the preview page to "oracle.com" previewDomain=oracle.com # Sets the default preview user to Adrian Robinson (user ID se-570085) defaultPreviewUserId=/se-570085 # Sets the default preview site to ATG Store defaultPreviewSiteId=/storeSiteUS