Channel Hostheaders Get Example

This example uses the channel.hostheaders.get() viper to display the configured hostheaders for the default channel.

Smartsite SXML CopyCode image Copy Code
<se:format inputdata="{channel.hostheaders.get(channel.defaultchannel())}" whitespace="simpleformat">
    <se:parameters>
        <se:parameter name="format">
            <se:colformat whitespace="remove">
                <td>{this.field()}</td>{char.crlf()}
            </se:colformat>
            <se:rowformat>
                <se:rowresult><tr>{this.rowresult()}</tr>
            </se:rowresult>
            </se:rowformat>
            <se:captionformat match="first">
                <se:colformat>
                    <th>{this.colname()}</th>
                </se:colformat>
                <se:rowresult><tr>{this.rowresult()}</tr></se:rowresult>
            </se:captionformat>            
        </se:parameter>
        <se:parameter name="resultformat">
            <table>{this.result()}</table>
        </se:parameter>
    </se:parameters>
</se:format>