DescribeContentTypeById (open)
Describes a content type
Syntax
LOADLIB "mod::publisher/lib/siteprofiles.whlib";
RECORD FUNCTION DescribeContentTypeById(INTEGER id, RECORD options)
Parameters
INTEGER id
Id of the content type
RECORD options
Options
BOOLEAN isfolder
If provided, fallback on normal file / normal folder when the provided id is 0.
BOOLEAN mockifmissing
If set and isfolder has been set, also return 'normal file' / 'normal folder' descriptions when the content type could not be found.
Return value
RECORD
Metadata for the content type
BOOLEAN blobiscontent
BOOLEAN capturesubpaths
RECORD dynamicexecution
STRING ARRAY extensions
INTEGER id
Id of the content type
STRING indexfile
For folders, type of the index file
BOOLEAN initialpublish
Whether the files should be published immediately after creation
BOOLEAN isacceptableindex
Wether files of this type can be used as index
BOOLEAN ishidden
BOOLEAN ispublishable
Whether the content type is publishable
INTEGER line
Line on which this content type is defined
STRING namespace
Namespace of the content type
BOOLEAN needstemplate
Whether files of this type need a template
BOOLEAN protectindexfile
For folders, whether the index file is protected (pinned automatically)
STRING searchprovider
STRING siteprofile
Siteprofile that defines this content type
STRING title
Tid with the title of the content type
STRING tolliumicon
Icon of this content type