Enabling commands and views in preview

To enable a command or view within preview, you remove it from the preview exclusion file. To remove a command or view from the preview exclusion file:

  1. Determine the name and location of the preview exclusion file. The location and name of the file that lists which commands cannot run within preview is listed in WC_instancename.xml in the PreviewExclusion element. The example below shows the default file name and location. The name of the file is previewExclusion.xml and it is stored in WC_installdir/xml/config:

    <PreviewExclusion Enabled="true" PreviewExclusionConfigFile="config/previewExclusion.xml" display="false"> </PreviewExclusion>

  2. Open the preview exclusion file in a text editor.
  3. Find the command that you want to remove from the file.
  4. Delete the command and the RestrictedCommand tag around it. For example, to remove OrderItemUpdate from the preview exclusion file, delete the following text:<RestrictedCommand>OrderItemUpdate</RestrictedCommand>
  5. Save the preview exclusion file.
  6. Open the WebSphere Commerce Administration Console.
  7. Click Configuration > Registry.
  8. Select the box to the left of Preview Command Exclusion and click Refresh. You do not need to restart the WebSphere Commerce server.

Feedback