Disabling the preview option | HCL Digital Experience
If you do not want to offer the preview option in your authoring system, you can disable it globally or for individual virtual portals. If you disable the preview option, the portal no longer shows the preview context menu in the action bar of the site toolbar.
About this task
You disable the preview option in the virtual portal configuration service.
Procedure
- Log in to the WebSphere® Integrated Solutions Console as an administrator.
- Click .
- Click WP VirtualPortalConfigService.
-
Update the appropriate configuration properties, depending on whether you want to
disable the feature globally or for a specific virtual portal only:
- To disable preview in the entire portal, including all virtual portals, proceed as follows:
- Click Custom properties.
- Edit the property
global.wp_toolbar_sitepreview.enabled
, and set its value tofalse
. - Save your changes.
- To disable preview for a specific virtual portal, proceed as follows:
- Click Custom properties.
- To disable preview for the default virtual portal, edit the property
default.wp_toolbar_sitepreview.enabled
, and set its value tofalse
. - To disable preview for any other virtual portal than the default virtual portal,
specify the following properties:
- context.virtual_portal_context.property.wp_toolbar_sitepreview.enabled = false
- Set the value for this property to
false
. Replacevirtual_portal_context
with the context of the target virtual portal. Example:context.vp1.property.wp_toolbar_sitepreview.enabled = false
. - hostname.virtual_portal_hostname.property.wp_toolbar_sitepreview.enabled = false
- Set the value for this property to
false
. Replacevirtual_portal_hostname
with the host name of the target virtual portal. Example:hostname.vp.example.com.property.wp_toolbar_sitepreview.enabled = false
.
global.wp_toolbar_sitepreview.enabled
listed earlier, it acts as a fallback setting for virtual portals that do not have the preview option set. For more information about prefixes, placeholders, and the order in which properties are evaluated, read Virtual Portal Configuration Service.
- To disable preview in the entire portal, including all virtual portals, proceed as follows: