obj contentTypesForObjType

Available for: Content Management Server

Task: Returns the list of the file name extensions that are in principle supported by the specified file type. However, the valid file name extensions of a particular CMS file may be different ones since they depend on the file format of the file in question. In a file format, the valid file name extensions can be set using validContentTypes.

Syntax:

obj contentTypesForObjType objType

Function parameters:

  • objType specifies the file type whose supported file name extensions are to be output.

Return value if successful: the list of the file name extensions (stringlist)

Necessary permissions (CM only): no restrictions

Example:

CM>obj contentTypesForObjType image
jpg jpeg gif