Returns the current channel's view.

Syntax

Smartsite SXML CopyCode image Copy Code
string channel.view()
string channel.view(boolean includeInactive)
string channel.view(boolean includeInactive, string channelCode)
string channel.view(boolean includeInactive, string channelCode, enum aim)
string channel.view(boolean includeInactive, string channelCode, enum aim, enum aimOptions)

Parameters

Name Data Type Description
includeInactive Boolean If set to true a view including inactive items is returned.
channelCode String The channel code.
aim Enum The AIM settings.
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
String The current channels' view.

Expand image Examples

SXML