Channel Examples

This example shows you how to retrieve some trivial fields from a channel.

Smartsite SXML CopyCode image Copy Code
Browse start page = {channel.browsestartpage()}
Channel code = {channel.code()}
Default document = {channel.defaultdocument()}
Id parameter = {channel.idparameter()}
Channel name = {channel.name()}
Channel view = {channel.view()}
Default hostheader of default channel = {channel.hostheaders.getdefault(channel.defaultchannel())}
Example Result CopyCode image Copy Code
Browse start page = 12853
Channel code = FUN
Default document = test.net
Id parameter = id
Channel name = Functional Test Channel
Channel view = vwActive_FUN
Default hostheader of default channel = http://localhost:7812/