PRELIMINARY INFORMATION - SUBJECT TO CHANGE
Returns the publication scoped contenttype code for the specified publication (if it exist), otherwise the system contenttype code.

Syntax

Smartsite SXML CopyCode image Copy Code
string publication.contenttypes.getcode(locator publication, string contentTypeCodeOrIdentifier)
string publication.contenttypes.getcode(string contentTypeCodeOrIdentifier)

Parameters

Name Data Type Description
publication Locator The publication.
contentTypeCodeOrIdentifier String The ContentType code or globally unique identifier.

Return Value

Data Type Description
String
SXML