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:
- 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>
- Open the preview exclusion file in a text editor.
- Find the command that you want to remove from the file.
- 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>
- Save the preview exclusion file.
- Open the WebSphere Commerce Administration Console.
- Click Configuration > Registry.
- Select the box to the left of Preview Command Exclusion and click Refresh. You do not need to restart the WebSphere Commerce server.