Skip to content

ContentType

Gets or sets the content type that attaches a profile form and data model to the document.

Type

string

Declaration

1
 string myDocument.ContentType

Remarks

Select a published content type while the document is Draft, before supplying profile data or publishing. Title and description are standard metadata; the content type defines the additional structured profile fields.

Assume a published content type named Contract defines the required document profile

1
2
var doc = $Documents.New('My Document', 'Contract');
var profileType = doc.ContentType;

See Also