Share via


DesignerDocument.applyDynamicTemplate Method

SharePoint Designer Developer Reference

Applies a Dynamic Web Template to a document.

Syntax

expression.applyDynamicTemplate(urlMaster, state)

expression   Required. A variable that represents a DesignerDocument object.

Parameters

Name Required/Optional Data Type Description
urlMaster Required String The path and file name for the Dynamic Web Template.
state Required DynamicTemplateState Specifies the region mapping for the Dynamic Web Template. Use the SetHeadMapping and SetBodyMapping methods of the DynamicTemplateState object to customize region mapping.

Remarks

To detach a Dynamic Web Template, use the applyDynamicTemplate method with the urlMaster parameter set to an empty string.

See Also