PreviewManagerPreview Method Content Studio 5.7 SDK
Content Studio Web Content Management System

[This is preliminary documentation and is subject to change.]

Creates a temporary file that can be used to preview a Content Studio document draft.

Namespace: ContentStudio.Document
Assembly: CSServer5 (in CSServer5.dll) Version: 5.7.5016.0 (5.7.5016.0)
Syntax

public string Preview(
	ConnectionId connectionId,
	SessionId sessionId,
	string xmlParameterData
)

Parameters

connectionId
Type: ContentStudioConnectionId
A value that identifies the web site
sessionId
Type: ContentStudio.SecuritySessionId
A value that identifies the user's session. This value usually originates from a call to OpenSession(ConnectionId).
xmlParameterData
Type: SystemString
XML that contains the parameters that this call uses. This XML is according to the Content Studio parameters XML schema
The xml has the following parameters defined:
Xml parameter nameMeaning
CategoryIdA category where the document to preview exists
ContentThe draft content of the document to preview
HeaderPropertiesHeader data of the document to preview
DocumentTitleThe title of the document to preview
BodyPropertiesThe html attributes of the BODY element of the document to preview
ETXmlThe EPT content of the document to preview (only applicable for Ept xml documents)
FileExtensionThe file extension of the document to preview
ASCodeComponent code when previewing an Active Scripting component.
RegisterXmlEmbedded directive xml data for registering components.
IsActiveScript1 when previewing an Active Scripting component; otherwise 0 or omit.

Return Value

Type: String

An xml document that contains data about files to temporary file to browse. The calling process should remove this file after previewing.

<root>
   <previewfilename></previewfilename>
   <tempfilename></tempfilename>
   <etxmlfilename></etxmlfilename>
   <!-- new in CS 5.3 -->
   <customIdentifier></customIdentifier>
   <url></url>
</root>

The returned xml has the following elements and meaning

ElementDescription
previewfilenameThe virtual (relative) name of the preview file
tempfilenameThe absolute (file system) path of the preview file
etxmlfilenameThe virtual (relative) path to the preview ETXml file that contains default values from an edit template when previewing a presentation template.
New fields in CS 5.3
customIdentifierAn identifier from an external preview storage. Returned by event action OnDocumentPreview
urlAn identifier from an external preview storage. Returned by event action OnDocumentPreview
See Also

Reference