DescribeContentTypeById (open)
Describes a content type
Syntax
LOADLIB "mod::publisher/lib/siteprofiles.whlib";
RECORD FUNCTION DescribeContentTypeById(INTEGER id, RECORD options)Parameters
INTEGER idId of the content type
RECORD optionsOptions
BOOLEAN isfolderIf provided, fallback on normal file / normal folder when the provided id is 0.
BOOLEAN mockifmissingIf set and isfolder has been set, also return 'normal file' / 'normal folder' descriptions when the content type could not be found.
Return value
RECORDMetadata for the content type
BOOLEAN blobiscontentBOOLEAN capturesubpathsRECORD dynamicexecutionSTRING ARRAY extensionsINTEGER idId of the content type
STRING indexfileFor folders, type of the index file
BOOLEAN initialpublishWhether the files should be published immediately after creation
BOOLEAN isacceptableindexWether files of this type can be used as index
BOOLEAN ispublishableWhether the content type is publishable
INTEGER lineLine on which this content type is defined
STRING namespaceNamespace of the content type
BOOLEAN needstemplateWhether files of this type need a template
BOOLEAN protectindexfileFor folders, whether the index file is protected (pinned automatically)
STRING searchproviderSTRING siteprofileSiteprofile that defines this content type
STRING titleTid with the title of the content type
STRING tolliumiconIcon of this content type