Returns a link to an item in the given channel.
Syntax
Smartsite SXML | Copy Code |
---|---|
locator channel.crosslink(locator item, string channelCode) locator channel.crosslink(locator item, string channelCode, boolean isRelative) locator channel.crosslink(locator item, string channelCode, boolean isRelative, enum aim) locator channel.crosslink(locator item, string channelCode, boolean isRelative, enum aim, enum aimOptions) |
Parameters
Name | Data Type | Description |
---|---|---|
item | Locator | The item code or number. |
channelCode | String | The channel code to produce the link for. |
isRelative | Boolean | True if the path must be shown as relative, false if an absolute Url should be shown. |
aim | Enum |
The AIM settings.
Enum values:
|
aimOptions | Enum |
The aim relation options. Default: automatically determined.
Enum values:
|
Return Value
Data Type | Description |
---|---|
Locator | Url to the specified item. |