Release 1.0 - Release 1.1
<publication> element
Note: This element is deprecated as of Smartsite iXperion 1.2 and has been replace by the <channels /> element.
Defines a publication channel in Smartsite. A publication channel consists of an id which is the three letter code of the channel as defined in the Smartsite database and the type is a reference to a .Net type defined in an assembly. There must be exactly one publication that has the default parameter.
Example
XML |
Copy Code
|
<publication id="def" default="true" type="Smartsite.Publication.WebBrowserChannel,Smartsite.Publication" enabled="true" />
|
Attributes
Attribute name |
Required |
Description |
id |
Yes |
Contains the three letter code of the channel. |
default |
No |
Defines if this publication channel is the default channel or not. |
type |
Yes |
Defines the .Net type and assembly that is used to handle this channel. |
enabled |
No |
Defines if this publication channel is enabled or not. If the value is missing, the publication 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 |
<publications> |
Contains the defined publication channels. |
Child elements
None.