Release 1.2 - ...
<channel> element
Defines properties for a specific channel. If this channel has the code='*', the properties apply to all channels.
Example
XML |
Copy Code
|
<channel code="def">
<hostheaders>
<hostheader baseurl="www.mysite.com" default="true" />
</hostheaders>
</channel>
|
Attributes
Attribute name |
Required |
Description |
code |
Yes |
Contains the code of the channel or the character '*' to indicate that the properties apply to all channels. |
type |
No |
Defines the .Net type and assembly that is used to handle this channel. |
enabled |
No |
Defines if this channel is enabled or not. If the value is missing, the channel will be enabled by default. |
unresolvedviperhandling |
No |
When vipers fail to resolve when rendering pages in a channel, you end up showing SXML markup to the end user. Although this is a rare situation, you don't want this to happen in production environments. On development machines however, you might want to trace these faulty vipers quickly to be able to get everything right for production.
The unresolvedviperhandling attribute of the publication tag can be used to specify the Render Engine behavior on a given channel:
The possible settings are:
- Ignore,
- Remove
- ThrowException
By default, nothing is done, and unresolved vipers are kept in the output. On production servers however you might want to use the remove setting, whereas on test servers and development machines, you could use throwexception in order to quickly identify problems with a site.
When the remove setting is chosen, a Trace log entry will be written whenever an unresolved viper is removed. |
Parent element
Element name |
Description |
<channels> |
Defines the channels and host headers available in this site. |
Child elements