The CommerceAccelerator.Plugins.Preview
module provides the required functionality and configuration to integrate both Experience Manager preview and Business Control Center preview into a Commerce Store Accelerator application. Including the Preview
plugin in an application gives a merchandiser the ability to launch the application in preview mode from either the Business Control Center or Experience Manager.
Neither Experience Manager preview nor Business Control Center preview is included in the template for an application module because preview functionality is not appropriate for all environments, for example, you would not configure Business Control Center preview to run on a live production server. For this reason, the configuration used to load the Preview
plugin during server start up is found in the configuration layers directories (CommerceAccelerator/Applications/
application-name
/src/main/configlayers
) and not the standard configuration directories (CommerceAccelerator/Applications/
application-name
/src/main/config
). You control the inclusion of a configuration layer with a server by passing the –layer preview
(for Business Control Center preview) or –layer endecapreview
(for Experience Manager preview) flags to the server during start up.
Business Control Center preview can be included with the following server types:
basic_management
basic_externalpreview
Experience Manager preview can be included with the following server types:
basic_production
(available when the Experience Manager Preview product add-on is selected for the production server)production_lock
(available when the Experience Manager Preview product add-on is selected for the production server)basic_staging
(available when the Experience Manager Preview product add-on is selected for the staging server)staging_db
(available when the Experience Manager Preview product add-on is selected for the staging server)