Determines whether the channel can render the given contenttype.

Syntax

Smartsite SXML CopyCode image Copy Code
boolean channel.contenttypes.exists(string contentTypeCodeOrIdentifier)
boolean channel.contenttypes.exists(string contentTypeCodeOrIdentifier, string channelCode)
boolean channel.contenttypes.exists(string contentTypeCodeOrIdentifier, string channelCode, enum aim)
boolean channel.contenttypes.exists(string contentTypeCodeOrIdentifier, string channelCode, enum aim, enum aimOptions)

Parameters

Name Data Type Description
contentTypeCodeOrIdentifier String The ContentType code or globally unique identifier.
channelCode String The channel code.
aim Enum The aim.
Enum values:
  • Off
    No AIM scan.
  • Normal
    Automatically determine the source, meaning that relations are added to the actual rendered page being rendered.
  • Autonomous
    Forces Autonomous registration of the relation as a relation of the source item itself, even if the source is a Translation or a RenderTemplate.
aimOptions Enum The aim relation options. Default: automatically determined.
Enum values:
  • Auto
    Automatic determine AIM link type.
  • Softlink
    Soft link.
  • Hardlink
    Hard link.

Return Value

Data Type Description
Boolean True if the channel can render the contenttype

Expand image Example

SXML