EPTSetDocumentAsPresentationTemplate Method (ConnectionId, SessionId, DocumentId, DocumentId) Content Studio 5.7 SDK
Content Studio Web Content Management System

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

Sets a document to be a EPT template. A document that is an edit-template cannot be set as a presentation-template and cannot be set back to an ordinary document.

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

public void SetDocumentAsPresentationTemplate(
	ConnectionId connectionId,
	SessionId sessionId,
	DocumentId documentId,
	DocumentId editTemplateId
)

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).
documentId
Type: ContentStudio.DocumentDocumentId
The document to set as an edit template.
editTemplateId
Type: ContentStudio.DocumentDocumentId
The edit template used by the category where the presentation template should be connected to. Pass zero when setting an edit template.
See Also

Reference