Utilizing VirtualViewer® specifiedDocuments
VirtualViewer’s specifiedDocuments feature will display the opened documents in the Documents Tab of the Thumbnails Panel.
If multiple documents are opened in the VirtualViewer at one time, this allows users to move from document to document using a thumbnail sized image of each as opposed to only the Document Name. It also allows users to reopen any document that may have been closed in the current viewing session.
To utilize specifiedDocuments, perform the following configuration steps:
- Locate the
config.js
file in the deployment directory on the server undervirtualviewer/user-config
. a. Edit themultipleDocMode
setting so that it readsvvDefines.multipleDocModes.specifiedDocuments
. -
Also within
virtualviewer/user-config
editcustom-code.js
as follows:a. Locate the
beforeVirtualViewerInit()
function and ensure that the following code is not commented out:var specifiedDocIds = top.window.specifiedDocIds; virtualViewer.initSpecifiedDocuments(specifiedDocIds);
-
Locate the
launchViewer.jsp
file in the deployment directory undervirtualviewer
and modify as follows:a. Locate the
loadTabs()
function and ensure that the following line is not commented out:top.window.specifiedDocIds = docIds;
- Save all three files and copy the edited versions onto the server(s).
Have questions, corrections, or concerns about this topic? Please let us know!